pub struct Signal<F> { /* private fields */ }Expand description
Source that watches signals.
All signals except SignalKind::CtrlC produces messages on UNIX system
only. For other systems they produce nothing. It’s useful and helps to
avoid writing #[cfg(unix)] everywhere around signals.
Implementations§
Auto Trait Implementations§
impl<F> !Freeze for Signal<F>
impl<F> !RefUnwindSafe for Signal<F>
impl<F> Send for Signal<F>where
F: Send,
impl<F> Sync for Signal<F>where
F: Sync,
impl<F> Unpin for Signal<F>where
F: Unpin,
impl<F> !UnwindSafe for Signal<F>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more