[−][src]Struct signal_hook::iterator::exfiltrator::raw::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]
pub fn clone(&self) -> WithRawSiginfo
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for WithRawSiginfo
[src]
impl Debug for WithRawSiginfo
[src]
impl Default for WithRawSiginfo
[src]
pub fn default() -> WithRawSiginfo
[src]
Auto Trait Implementations
impl RefUnwindSafe for WithRawSiginfo
[src]
impl Send for WithRawSiginfo
[src]
impl Sync for WithRawSiginfo
[src]
impl Unpin for WithRawSiginfo
[src]
impl UnwindSafe for WithRawSiginfo
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<E> Exfiltrator for E where
E: Exfiltrator,
[src]
E: Exfiltrator,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,