pub struct SignalMask {
mask: u64,
}Expand description
Signal mask for blocking signals
Fields§
§mask: u64Implementations§
Source§impl SignalMask
impl SignalMask
pub fn new() -> Self
pub fn block_signal(&mut self, signal: LinuxSignal)
pub fn unblock_signal(&mut self, signal: LinuxSignal)
pub fn is_blocked(&self, signal: LinuxSignal) -> bool
pub fn raw(&self) -> u64
pub fn set_raw(&mut self, mask: u64)
Trait Implementations§
Source§impl Clone for SignalMask
impl Clone for SignalMask
Source§fn clone(&self) -> SignalMask
fn clone(&self) -> SignalMask
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignalMask
impl Debug for SignalMask
Source§impl Default for SignalMask
impl Default for SignalMask
Source§fn default() -> SignalMask
fn default() -> SignalMask
Returns the “default value” for a type. Read more
impl Copy for SignalMask
Auto Trait Implementations§
impl Freeze for SignalMask
impl RefUnwindSafe for SignalMask
impl Send for SignalMask
impl Sync for SignalMask
impl Unpin for SignalMask
impl UnwindSafe for SignalMask
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)