HostIncomingValue

Trait HostIncomingValue 

Source
pub trait HostIncomingValue: Send {
    // Required methods
    fn incoming_value_consume_sync(
        &mut self,
        this: Resource<IncomingValue>,
    ) -> impl Future<Output = Result<Result<IncomingValueSyncBody, Error>>> + Send;
    fn incoming_value_consume_async(
        &mut self,
        this: Resource<IncomingValue>,
    ) -> impl Future<Output = Result<Result<Resource<IncomingValueAsyncBody>, Error>>> + Send;
    fn size(
        &mut self,
        self_: Resource<IncomingValue>,
    ) -> impl Future<Output = Result<u64>> + Send;
    fn drop(
        &mut self,
        rep: Resource<IncomingValue>,
    ) -> impl Future<Output = Result<()>> + Send;
}

Required Methods§

Source

fn incoming_value_consume_sync( &mut self, this: Resource<IncomingValue>, ) -> impl Future<Output = Result<Result<IncomingValueSyncBody, Error>>> + Send

Source

fn incoming_value_consume_async( &mut self, this: Resource<IncomingValue>, ) -> impl Future<Output = Result<Result<Resource<IncomingValueAsyncBody>, Error>>> + Send

Source

fn size( &mut self, self_: Resource<IncomingValue>, ) -> impl Future<Output = Result<u64>> + Send

Source

fn drop( &mut self, rep: Resource<IncomingValue>, ) -> impl Future<Output = Result<()>> + Send

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: HostIncomingValue + ?Sized + Send> HostIncomingValue for &mut _T

Implementors§