[][src]Struct signal_hook::iterator::exfiltrator::raw::WithRawSiginfo

pub struct WithRawSiginfo;

The Exfiltrator that produces the raw libc::siginfo_t. Note that it might look differently on different OSes and its API is a little bit more limited than its C counterpart.

You might prefer the WithOrigin if you simply need information about the origin of the signal.

Examples

// Subscribe to SIGUSR1, with information about the process.
let mut signals = SignalsInfo::<WithRawSiginfo>::new(&[SIGUSR1])?;

// Send ourselves a signal.
signal_hook::low_level::raise(SIGUSR1)?;

// Grab the signal and look into the details.
let received = signals.wait().next().unwrap();

// Not much else is useful in a cross-platform way :-(
assert_eq!(SIGUSR1, received.si_signo);

Trait Implementations

impl Clone for WithRawSiginfo[src]

impl Copy for WithRawSiginfo[src]

impl Debug for WithRawSiginfo[src]

impl Default for WithRawSiginfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<E> Exfiltrator for E where
    E: Exfiltrator, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.