wrpc_runtime_wasmtime::bindings::rpc::transport

Trait HostIncomingChannel

Source
pub trait HostIncomingChannel: Sized + Send {
    // Required methods
    fn data(
        &mut self,
        self_: Resource<IncomingChannel>,
    ) -> Result<Option<Resource<InputStream>>>;
    fn index(
        &mut self,
        self_: Resource<IncomingChannel>,
        path: Vec<u32>,
    ) -> Result<Result<Resource<IncomingChannel>, Resource<Error>>>;
    fn drop(&mut self, rep: Resource<IncomingChannel>) -> Result<()>;
}

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<_T: HostIncomingChannel + ?Sized + Send> HostIncomingChannel for &mut _T

Implementors§