pub struct Signal { /* private fields */ }Expand description
The Signal struct represents a valid signal.
Implementations§
Source§impl Signal
impl Signal
Sourcepub const NUM_SIGNALS: u32 = 64u32
pub const NUM_SIGNALS: u32 = 64u32
The number of signals, also the highest valid signal number.
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
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more