Skip to main content

SimpleVmbusClientDeviceAsync

Trait SimpleVmbusClientDeviceAsync 

Source
pub trait SimpleVmbusClientDeviceAsync:
    SimpleVmbusClientDevice
    + 'static
    + Send
    + Sync {
    // Required method
    fn run(
        &mut self,
        stop: &mut StopTask<'_>,
        runner: &mut Self::Runner,
    ) -> impl Send + Future<Output = Result<(), Cancelled>>;
}

Required Methods§

Source

fn run( &mut self, stop: &mut StopTask<'_>, runner: &mut Self::Runner, ) -> impl Send + Future<Output = Result<(), Cancelled>>

Runs an open channel until stop is signaled.

Check for stop at cancel-safe work boundaries even when channel work remains continuously ready.

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.

Implementors§