pub enum PidRefusal {
Zero,
OutOfRange(u32),
Init,
OwnProcess(u32),
OwnGroup(u32),
}Expand description
Why a PID may not be handed to a signal syscall.
Variants§
Zero
kill(0, …) addresses the caller’s own process group.
OutOfRange(u32)
Above i32::MAX the value wraps to a negative pid_t: a process
group, or (u32::MAX = -1) every process the user may signal.
Init
PID 1 is init (or a user’s systemd); never a LeanCTX target.
OwnProcess(u32)
The caller itself.
OwnGroup(u32)
The process group the caller belongs to.
Trait Implementations§
Source§impl Clone for PidRefusal
impl Clone for PidRefusal
impl Copy for PidRefusal
Source§impl Debug for PidRefusal
impl Debug for PidRefusal
Source§impl Display for PidRefusal
impl Display for PidRefusal
impl Eq for PidRefusal
Source§impl Error for PidRefusal
impl Error for PidRefusal
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for PidRefusal
impl PartialEq for PidRefusal
impl StructuralPartialEq for PidRefusal
Auto Trait Implementations§
impl Forget for PidRefusal
impl Freeze for PidRefusal
impl Move for PidRefusal
impl RefUnwindSafe for PidRefusal
impl Send for PidRefusal
impl Sync for PidRefusal
impl Unpin for PidRefusal
impl UnsafeUnpin for PidRefusal
impl UnwindSafe for PidRefusal
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