pub enum Protection {
FsRefer,
FsTruncate,
NetTcp,
FsIoctlDev,
SignalScope,
AbstractUnixSocketScope,
}Expand description
A single Landlock-provided protection, ABI-gated.
Variants§
FsRefer
LANDLOCK_ACCESS_FS_REFER — ABI v2+.
FsTruncate
LANDLOCK_ACCESS_FS_TRUNCATE — ABI v3+.
NetTcp
LANDLOCK_ACCESS_NET_BIND_TCP / _CONNECT_TCP — ABI v4+.
FsIoctlDev
LANDLOCK_ACCESS_FS_IOCTL_DEV — ABI v5+.
SignalScope
LANDLOCK_SCOPE_SIGNAL — ABI v6+.
AbstractUnixSocketScope
LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET — ABI v6+.
Implementations§
Source§impl Protection
impl Protection
Trait Implementations§
Source§impl Clone for Protection
impl Clone for Protection
Source§fn clone(&self) -> Protection
fn clone(&self) -> Protection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Protection
Source§impl Debug for Protection
impl Debug for Protection
Source§impl<'de> Deserialize<'de> for Protection
impl<'de> Deserialize<'de> for Protection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Protection
Source§impl Hash for Protection
impl Hash for Protection
Source§impl PartialEq for Protection
impl PartialEq for Protection
Source§fn eq(&self, other: &Protection) -> bool
fn eq(&self, other: &Protection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Protection
impl Serialize for Protection
impl StructuralPartialEq for Protection
Auto Trait Implementations§
impl Freeze for Protection
impl RefUnwindSafe for Protection
impl Send for Protection
impl Sync for Protection
impl Unpin for Protection
impl UnsafeUnpin for Protection
impl UnwindSafe for Protection
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.