Trait ipc_queue::Synchronizer

source ·
pub trait Synchronizer: Clone {
    // Required methods
    fn wait(&self, event: QueueEvent) -> Result<(), SynchronizationError>;
    fn notify(&self, event: QueueEvent);
}

Required Methods§

source

fn wait(&self, event: QueueEvent) -> 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.

Object Safety§

This trait is not object safe.

Implementors§