Struct starnix_uapi::signals::Signal
source · pub struct Signal { /* private fields */ }
Expand description
The Signal
struct represents a valid signal.
Implementations§
source§impl Signal
impl Signal
sourcepub fn number(&self) -> u32
pub fn number(&self) -> u32
The signal number, guaranteed to be a value between 1..=NUM_SIGNALS.
sourcepub fn is_real_time(&self) -> bool
pub fn is_real_time(&self) -> bool
Returns true if the signal is a real-time signal.
sourcepub fn is_unblockable(&self) -> bool
pub fn is_unblockable(&self) -> bool
Returns true if this signal can’t be blocked. This means either SIGKILL or SIGSTOP.
sourcepub fn set_ptrace_syscall_bit(&mut self)
pub fn set_ptrace_syscall_bit(&mut self)
Used exclusively for PTRACE_O_TRACESYSGOOD
sourcepub const NUM_SIGNALS: u32 = 64u32
pub const NUM_SIGNALS: u32 = 64u32
The number of signals, also the highest valid signal number.
Trait Implementations§
source§impl From<Signal> for UncheckedSignal
impl From<Signal> for UncheckedSignal
source§fn from(signal: Signal) -> UncheckedSignal
fn from(signal: Signal) -> UncheckedSignal
Converts to this type from the input type.
source§impl PartialEq for Signal
impl PartialEq for Signal
source§impl TryFrom<UncheckedSignal> for Signal
impl TryFrom<UncheckedSignal> for Signal
impl Copy for Signal
impl Eq for Signal
impl StructuralPartialEq for Signal
Auto Trait Implementations§
impl Freeze for Signal
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnwindSafe for Signal
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