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§
Sourcefn notify_consumer(&self)
fn notify_consumer(&self)
Notify the consumer that data is available.
Sourcefn notify_producer(&self)
fn notify_producer(&self)
Notify the producer that space is available.
Sourcefn wait_notification(&self) -> Result<(), IpcError>
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".