Trait AsyncSynchronizer

Source
pub trait AsyncSynchronizer: Clone {
    // Required methods
    fn wait(
        &self,
        event: QueueEvent,
    ) -> Pin<Box<dyn Future<Output = Result<(), SynchronizationError>> + '_>>;
    fn notify(&self, event: QueueEvent);
}

Required Methods§

Source

fn wait( &self, event: QueueEvent, ) -> Pin<Box<dyn Future<Output = Result<(), SynchronizationError>> + '_>>

block execution until the specified event happens.

Source

fn notify(&self, event: QueueEvent)

notify all waiters blocked on the specified event for the same Fifo.

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§