Enum landlock::AccessError
source · pub enum AccessError<T>where
T: Access,{
Empty,
Unknown {
access: BitFlags<T>,
unknown: BitFlags<T>,
},
Incompatible {
access: BitFlags<T>,
},
PartiallyCompatible {
access: BitFlags<T>,
incompatible: BitFlags<T>,
},
}
Variants§
Empty
The access-rights set is empty, which doesn’t make sense and would be rejected by the kernel.
Unknown
The access-rights set was forged with the unsafe BitFlags::from_bits_unchecked()
and it
contains unknown bits.
Incompatible
The best-effort approach was (deliberately) disabled and the requested access-rights are fully incompatible with the running kernel.
PartiallyCompatible
The best-effort approach was (deliberately) disabled and the requested access-rights are partially incompatible with the running kernel.
Trait Implementations§
source§impl<T> Debug for AccessError<T>
impl<T> Debug for AccessError<T>
source§impl<T> Display for AccessError<T>
impl<T> Display for AccessError<T>
source§impl<T> Error for AccessError<T>
impl<T> Error for AccessError<T>
1.30.0 · 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<AccessError<T>> for CompatError<T>where
T: Access,
impl<T> From<AccessError<T>> for CompatError<T>where
T: Access,
source§fn from(source: AccessError<T>) -> Self
fn from(source: AccessError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for AccessError<T>where
<T as RawBitFlags>::Numeric: Freeze,
impl<T> RefUnwindSafe for AccessError<T>where
<T as RawBitFlags>::Numeric: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for AccessError<T>
impl<T> Sync for AccessError<T>
impl<T> Unpin for AccessError<T>
impl<T> UnwindSafe for AccessError<T>where
<T as RawBitFlags>::Numeric: UnwindSafe,
T: 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