pub struct LandlockPolicy {
pub min_abi: u8,
pub rules: Vec<LandlockRule>,
}Expand description
Parsed Landlock policy from a TOML file.
Fields§
§min_abi: u8Minimum required ABI version (1-5). Default: 3.
rules: Vec<LandlockRule>Filesystem access rules.
Implementations§
Trait Implementations§
Source§impl Clone for LandlockPolicy
impl Clone for LandlockPolicy
Source§fn clone(&self) -> LandlockPolicy
fn clone(&self) -> LandlockPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LandlockPolicy
impl Debug for LandlockPolicy
Source§impl<'de> Deserialize<'de> for LandlockPolicy
impl<'de> Deserialize<'de> for LandlockPolicy
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
Auto Trait Implementations§
impl Freeze for LandlockPolicy
impl RefUnwindSafe for LandlockPolicy
impl Send for LandlockPolicy
impl Sync for LandlockPolicy
impl Unpin for LandlockPolicy
impl UnsafeUnpin for LandlockPolicy
impl UnwindSafe for LandlockPolicy
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