Trait Authorize

Source
pub trait Authorize {
    // Required methods
    fn has_any<const N: usize>(&self, modes: [Mode; N]) -> bool;
    fn is_none(self) -> bool;
    fn may_read(self) -> bool;
    fn may_write(self) -> bool;
    fn may_execute(self) -> bool;
}

Required Methods§

Source

fn has_any<const N: usize>(&self, modes: [Mode; N]) -> bool

Source

fn is_none(self) -> bool

Source

fn may_read(self) -> bool

Source

fn may_write(self) -> bool

Source

fn may_execute(self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Authorize for Mode

Source§

fn has_any<const N: usize>(&self, modes: [Mode; N]) -> bool

Source§

fn is_none(self) -> bool

Source§

fn may_read(self) -> bool

Source§

fn may_write(self) -> bool

Source§

fn may_execute(self) -> bool

Implementors§