[][src]Struct kernel::DynamicGrant

pub struct DynamicGrant<T: ?Sized> { /* fields omitted */ }

Grant which was dynamically allocated in a particular app's memory.


impl<T: ?Sized> DynamicGrant<T>[src]

pub fn appid(&self) -> AppId[src]

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

Gives access to inner data within the given closure.

If the app has since been restarted or crashed, or the memory is otherwise no longer present, then this function will not call the given closure, and will instead directly return Err(Error::NoSuchApp).

Auto Trait Implementations

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

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

impl<T: ?Sized> Unpin for DynamicGrant<T>[src]

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.