wrpc_runtime_wasmtime::bindings::rpc::transport

Trait HostOutgoingChannel

Source
pub trait HostOutgoingChannel: Sized + Send {
    // Required methods
    fn data(
        &mut self,
        self_: Resource<OutgoingChannel>,
    ) -> Result<Option<Resource<OutputStream>>>;
    fn index(
        &mut self,
        self_: Resource<OutgoingChannel>,
        path: Vec<u32>,
    ) -> Result<Result<Resource<OutgoingChannel>, Resource<Error>>>;
    fn drop(&mut self, rep: Resource<OutgoingChannel>) -> 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: HostOutgoingChannel + ?Sized + Send> HostOutgoingChannel for &mut _T

Implementors§