pub struct SignalSet { /* private fields */ }Expand description
Provides a signal handing.
Implementations§
Source§impl SignalSet
impl SignalSet
pub fn new(ctx: &IoContext) -> Result<SignalSet>
pub fn add(&mut self, signal: Signal) -> Result<()>
pub fn async_wait<F>(&self, handler: F) -> F::Output
pub fn cancel(&self) -> &Self
pub fn clear(&mut self) -> Result<()>
pub fn remove(&mut self, signal: Signal) -> Result<()>
pub fn wait(&self) -> Result<Signal>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SignalSet
impl !Sync for SignalSet
impl !UnwindSafe for SignalSet
impl Freeze for SignalSet
impl Unpin for SignalSet
impl UnsafeUnpin for SignalSet
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