Skip to main content

Signal

Trait Signal 

Source
pub trait Signal: AsFd {
    type Error;

    // Required method
    fn wait(&self) -> Result<(), Self::Error>;
}

Required Associated Types§

Required Methods§

Source

fn wait(&self) -> Result<(), Self::Error>

Consumes a pending signal after descriptor readiness. The caller retains sole consumption authority between observing readiness and this call.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§