pub enum ExtraSafeError {
ConditionalNoEffectError(Sysno, &'static str, &'static str),
SeccompError(Error),
NoRulesEnabled,
}Expand description
The error type produced by crate::SafetyContext
Variants§
ConditionalNoEffectError(Sysno, &'static str, &'static str)
Error created when a simple Seccomp rule would override a conditional rule, or when trying to add a conditional rule when there’s already a simple rule with the same syscall.
SeccompError(Error)
An error from the underlying seccomp library.
NoRulesEnabled
No rules were enabled in the SafetyContext.
Trait Implementations§
Source§impl Debug for ExtraSafeError
impl Debug for ExtraSafeError
Source§impl Display for ExtraSafeError
impl Display for ExtraSafeError
Source§impl Error for ExtraSafeError
impl Error for ExtraSafeError
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<Error> for ExtraSafeError
impl From<Error> for ExtraSafeError
Source§fn from(value: BackendError) -> Self
fn from(value: BackendError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ExtraSafeError
impl From<Error> for ExtraSafeError
Source§fn from(value: SeccompilerError) -> Self
fn from(value: SeccompilerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExtraSafeError
impl !RefUnwindSafe for ExtraSafeError
impl Send for ExtraSafeError
impl Sync for ExtraSafeError
impl Unpin for ExtraSafeError
impl !UnwindSafe for ExtraSafeError
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