[][src]Struct kernel::Grant

pub struct Grant<T: Default> { /* fields omitted */ }

Region of process memory reserved for the kernel.


impl<T: Default> Grant<T>[src]

pub fn grant(&self, appid: AppId) -> Option<AppliedGrant<T>>[src]

pub fn enter<F, R>(&self, appid: AppId, fun: F) -> Result<R, Error> where
    F: FnOnce(&mut Borrowed<'_, T>, &mut Allocator) -> R,
    R: Copy

pub fn each<F>(&self, fun: F) where
    F: Fn(&mut Owned<T>), 

pub fn iter(&self) -> Iter<'_, T>[src]

Get an iterator over all processes and their active grant regions for this particular grant.

Auto Trait Implementations

impl<T> !Send for Grant<T>[src]

impl<T> !Sync for Grant<T>[src]

impl<T> Unpin for Grant<T> where
    T: Unpin

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.