Skip to main content

IpcNotification

Trait IpcNotification 

Source
pub trait IpcNotification: IpcTransport {
    // Required methods
    fn notify_consumer(&self);
    fn notify_producer(&self);
    fn wait_notification(&self) -> Result<(), IpcError>;
}
Expand description

Notification side : futex-based wakeup for blocking transports.

Required Methods§

Source

fn notify_consumer(&self)

Notify the consumer that data is available.

Source

fn notify_producer(&self)

Notify the producer that space is available.

Source

fn wait_notification(&self) -> Result<(), IpcError>

Block until a notification arrives.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§