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§
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
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.