Trait landlock::Access

source ·
pub trait Access: PrivateAccess {
    // Required methods
    fn from_read(abi: ABI) -> BitFlags<Self>;
    fn from_write(abi: ABI) -> BitFlags<Self>;

    // Provided method
    fn from_all(abi: ABI) -> BitFlags<Self> { ... }
}

Required Methods§

source

fn from_read(abi: ABI) -> BitFlags<Self>

Gets the access rights identified as read-only according to a specific ABI. Exclusive with from_write().

source

fn from_write(abi: ABI) -> BitFlags<Self>

Gets the access rights identified as write-only according to a specific ABI. Exclusive with from_read().

Provided Methods§

source

fn from_all(abi: ABI) -> BitFlags<Self>

Gets the access rights defined by a specific ABI. Union of from_read() and from_write().

Object Safety§

This trait is not object safe.

Implementors§