[−][src]Struct kernel::Grant
Region of process memory reserved for the kernel.
Implementations
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,
[src]
F: FnOnce(&mut Borrowed<'_, T>, &mut Allocator) -> R,
R: Copy,
pub fn each<F>(&self, fun: F) where
F: Fn(&mut Owned<T>),
[src]
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,
[src]
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,