#[repr(u32)]pub enum Context {
Show 17 variants
Unknown = 0,
Affinity = 1,
Clone = 2,
Tty = 3,
Stdio = 4,
ResetSignals = 5,
MapUid = 6,
MapGid = 7,
Hostname = 8,
Domainname = 9,
Chroot = 10,
Chdir = 11,
Mount = 12,
Network = 13,
PreExec = 14,
Seccomp = 15,
Exec = 16,
}Expand description
Context associated with Error. Useful for knowing which particular part
of super::Command::spawn failed.
Variants§
Unknown = 0
No context provided.
Affinity = 1
Setting CPU affinity failed.
Clone = 2
The clone syscall failed.
Tty = 3
Setting up the tty failed.
Stdio = 4
Setting up stdio failed.
ResetSignals = 5
Resetting signals failed.
MapUid = 6
Changing /proc/{pid}/uid_map failed.
MapGid = 7
Changing /proc/{pid}/setgroups or /proc/{pid}/gid_map failed.
Hostname = 8
Setting the hostname failed.
Domainname = 9
Setting the domainname failed.
Chroot = 10
Chroot failed.
Chdir = 11
Chdir failed.
Mount = 12
Mounting failed.
Network = 13
Network configuration failed.
PreExec = 14
The pre_exec callback(s) failed.
Seccomp = 15
Setting the seccomp filter failed.
Exec = 16
Exec failed.
Implementations§
Trait Implementations§
impl Copy for Context
Source§impl<'de> Deserialize<'de> for Context
impl<'de> Deserialize<'de> for Context
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Context
impl StructuralPartialEq for Context
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for Context
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