[−][src]Struct signal_hook::iterator::exfiltrator::origin::WithOrigin
The Exfiltrator
that produces Origin
of
signals.
Examples
// Subscribe to SIGUSR1, with information about the process. let signals = SignalsInfo::<WithOrigin>::new(&[SIGUSR1])?; // Send a signal to ourselves. let my_pid = unsafe { libc::getpid() }; unsafe { libc::kill(my_pid, SIGUSR1) }; // Grab the signal and look into the details. let received = signals.forever().next().unwrap(); assert_eq!(SIGUSR1, received.signal); assert_eq!(my_pid, received.process.unwrap().pid);
Trait Implementations
impl Clone for WithOrigin
[src]
pub fn clone(&self) -> WithOrigin
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for WithOrigin
[src]
impl Debug for WithOrigin
[src]
impl Default for WithOrigin
[src]
pub fn default() -> WithOrigin
[src]
Auto Trait Implementations
impl RefUnwindSafe for WithOrigin
[src]
impl Send for WithOrigin
[src]
impl Sync for WithOrigin
[src]
impl Unpin for WithOrigin
[src]
impl UnwindSafe for WithOrigin
[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>,