Enum landlock::HandleAccessError
source · #[non_exhaustive]pub enum HandleAccessError<T>where
T: Access,{
Compat(CompatError<T>),
}
Expand description
Identifies errors when updating the ruleset’s handled access-rights.
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.
Compat(CompatError<T>)
Trait Implementations§
source§impl<T> Debug for HandleAccessError<T>
impl<T> Debug for HandleAccessError<T>
source§impl<T> Display for HandleAccessError<T>
impl<T> Display for HandleAccessError<T>
source§impl<T> Error for HandleAccessError<T>
impl<T> Error for HandleAccessError<T>
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<T> From<CompatError<T>> for HandleAccessError<T>where
T: Access,
impl<T> From<CompatError<T>> for HandleAccessError<T>where
T: Access,
source§fn from(source: CompatError<T>) -> Self
fn from(source: CompatError<T>) -> Self
Converts to this type from the input type.
source§impl<A> From<HandleAccessError<A>> for HandleAccessesErrorwhere
A: Access,
impl<A> From<HandleAccessError<A>> for HandleAccessesErrorwhere
A: Access,
source§fn from(error: HandleAccessError<A>) -> Self
fn from(error: HandleAccessError<A>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for HandleAccessError<T>where
<T as RawBitFlags>::Numeric: Freeze,
impl<T> !RefUnwindSafe for HandleAccessError<T>
impl<T> Send for HandleAccessError<T>
impl<T> Sync for HandleAccessError<T>
impl<T> Unpin for HandleAccessError<T>
impl<T> !UnwindSafe for HandleAccessError<T>
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