[][src]Struct wasi_common::HandleRights

pub struct HandleRights { /* fields omitted */ }

Represents rights of a Handle, either already held or required.

Implementations

impl HandleRights[src]

pub fn new(base: Rights, inheriting: Rights) -> Self[src]

Creates new HandleRights instance from base and inheriting rights.

pub fn from_base(base: Rights) -> Self[src]

Creates new HandleRights instance from base rights only, keeping inheriting set to none.

pub fn empty() -> Self[src]

Creates new HandleRights instance with both base and inheriting rights set to none.

pub fn contains(&self, other: &Self) -> bool[src]

Checks if other is a subset of those rights.

pub fn base(&self) -> Rights[src]

Returns base rights.

pub fn inheriting(&self) -> Rights[src]

Returns inheriting rights.

Trait Implementations

impl Clone for HandleRights[src]

impl Copy for HandleRights[src]

impl Debug for HandleRights[src]

impl Display for HandleRights[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointee for T[src]

type Pointer = u32

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.