pub struct SigSet(/* private fields */);
Expand description
A wrapper for libc::sigset_t
Implementations§
Source§impl SigSet
impl SigSet
Sourcepub fn remove_many(&mut self, sigs: &[Sig]) -> &mut Self
pub fn remove_many(&mut self, sigs: &[Sig]) -> &mut Self
Sourcepub fn disable_default_handler(&self) -> Result<()>
pub fn disable_default_handler(&self) -> Result<()>
Detach SigSet
from default handlers.
Specified signals are ignored by runtime but can be handled by user-defined handlers, for
example by [mio-signalfd
].
Sourcepub fn enable_default_handler(&self) -> Result<()>
pub fn enable_default_handler(&self) -> Result<()>
Attach a SigSet
to default handlers.
Specified signals are handled by runtime according to default rules, which may prevent signal from reaching user-defined handler.
Sourcepub fn as_ptr(&self) -> *const sigset_t
pub fn as_ptr(&self) -> *const sigset_t
Expose as const pointer to underlying libc::sigset_t
Sourcepub fn as_mut_ptr(&mut self) -> *mut sigset_t
pub fn as_mut_ptr(&mut self) -> *mut sigset_t
Expose as mut pointer to underlying libc::sigset_t
Auto Trait Implementations§
impl Freeze for SigSet
impl RefUnwindSafe for SigSet
impl Send for SigSet
impl Sync for SigSet
impl Unpin for SigSet
impl UnwindSafe for SigSet
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