[][src]Struct kernel::grant::Grant

pub struct Grant<T: Default> {
    pub(crate) kernel: &'static Kernel,
    grant_num: usize,
    ptr: PhantomData<T>,
}

Region of process memory reserved for the kernel.

Fields

kernel: &'static Kernelgrant_num: usizeptr: PhantomData<T>

Methods

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

pub(crate) fn new(kernel: &'static Kernel, grant_index: usize) -> 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
[src]

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

Important traits for Iter<'a, T>
pub fn iter(&self) -> Iter<T>[src]

Auto Trait Implementations

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

impl<T> !Send for Grant<T>

impl<T> !Sync for Grant<T>

Blanket Implementations

impl<T> From<T> for T[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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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