#[non_exhaustive]pub enum SyscallFlagError<F: SyscallFlag> {
#[non_exhaustive] NotSupported {
flag: F,
set: bool,
},
}Expand description
Identifies errors when configuring a syscall flag.
Generic over the flag type to support different syscall flag categories.
Each flag type implements SyscallFlag.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
#[non_exhaustive]NotSupported
The requested flag configuration is not supported by the running kernel.
Trait Implementations§
Source§impl<F: Debug + SyscallFlag> Debug for SyscallFlagError<F>
impl<F: Debug + SyscallFlag> Debug for SyscallFlagError<F>
Source§impl<F> Display for SyscallFlagError<F>where
F: Debug + SyscallFlag,
impl<F> Display for SyscallFlagError<F>where
F: Debug + SyscallFlag,
Source§impl<F: SyscallFlag> Error for SyscallFlagError<F>
impl<F: SyscallFlag> Error for SyscallFlagError<F>
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<SyscallFlagError<RestrictSelfFlag>> for RulesetError
impl From<SyscallFlagError<RestrictSelfFlag>> for RulesetError
Source§fn from(source: SyscallFlagError<RestrictSelfFlag>) -> Self
fn from(source: SyscallFlagError<RestrictSelfFlag>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<F> Freeze for SyscallFlagError<F>where
F: Freeze,
impl<F> RefUnwindSafe for SyscallFlagError<F>where
F: RefUnwindSafe,
impl<F> Send for SyscallFlagError<F>where
F: Send,
impl<F> Sync for SyscallFlagError<F>where
F: Sync,
impl<F> Unpin for SyscallFlagError<F>where
F: Unpin,
impl<F> UnsafeUnpin for SyscallFlagError<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for SyscallFlagError<F>where
F: UnwindSafe,
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