[][src]Struct kernel::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.


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


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

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

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>, 

type Error = Infallible

The type returned in the event of a conversion error.

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

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.

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

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

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