pub enum LinuxError {
Os {
operation: &'static str,
code: i32,
},
InvalidSize(usize),
WrongPeer,
InvalidFrame,
InvalidAncillaryData,
InvalidCapability,
Bootstrap,
Layout(LayoutError),
Binding(BindingError),
}Expand description
Linux mapping, descriptor-transfer, or peer-authentication failure.
Variants§
Os
A native syscall failed with the captured errno.
InvalidSize(usize)
Requested mapping size is zero or cannot be page-rounded.
WrongPeer
Received peer credentials differ from the expected live process.
InvalidFrame
Descriptor transfer frame was truncated, malformed, or stale.
InvalidAncillaryData
Received descriptor count or ancillary type was not exactly one SCM_RIGHTS fd.
InvalidCapability
Received capability lacks the exact anonymous sealed-shmem policy.
Bootstrap
Private bootstrap path, environment, or child process setup failed.
Layout(LayoutError)
Quiescent core layout validation failed.
Binding(BindingError)
Audited core binding failed.
Trait Implementations§
Source§impl Debug for LinuxError
impl Debug for LinuxError
Source§impl Display for LinuxError
impl Display for LinuxError
Source§impl Error for LinuxError
impl Error for LinuxError
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 From<BindingError> for LinuxError
impl From<BindingError> for LinuxError
Source§fn from(value: BindingError) -> Self
fn from(value: BindingError) -> Self
Converts to this type from the input type.
Source§impl From<LayoutError> for LinuxError
impl From<LayoutError> for LinuxError
Source§fn from(value: LayoutError) -> Self
fn from(value: LayoutError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LinuxError
impl RefUnwindSafe for LinuxError
impl Send for LinuxError
impl Sync for LinuxError
impl Unpin for LinuxError
impl UnsafeUnpin for LinuxError
impl UnwindSafe for LinuxError
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