pub struct Context<'a, 'd>(/* private fields */);Expand description
Restricted construction context for driver-domain storage.
Exposes stable identities and route reservation without operation submission. A build cannot publish into its output before the runtime pins that output.
Implementations§
Source§impl<'a, 'd> Context<'a, 'd>
impl<'a, 'd> Context<'a, 'd>
pub fn driver(&self) -> Reference<'d>
pub fn region(&self) -> &Token<Identity<'d>>
pub fn state(&self) -> &Token<Identity<'d, 1>>
pub fn timer(&self) -> Timer<'d>
pub fn clock(&self) -> Clock<'_, 'd>
Sourcepub fn allocator(&self) -> Alloc<'d>
pub fn allocator(&self) -> Alloc<'d>
Copies the resident-domain authority for this exact driver generation.
Sourcepub fn budget(&self, cap: Resident) -> Result<Budget<'d>, Exhausted>
pub fn budget(&self, cap: Resident) -> Result<Budget<'d>, Exhausted>
Claims a lifetime-branded resident accounting domain for storage owned by the build output.
Sourcepub fn reborrow(&mut self) -> Context<'_, 'd>
pub fn reborrow(&mut self) -> Context<'_, 'd>
Lends one affine construction step while retaining this outer authority.
Sourcepub fn try_flights<Tags, const GROUPS: usize>(
self,
need: Need<Tags, GROUPS>,
) -> Result<Prepared<'a, 'd, Tags, GROUPS>, Error>
pub fn try_flights<Tags, const GROUPS: usize>( self, need: Need<Tags, GROUPS>, ) -> Result<Prepared<'a, 'd, Tags, GROUPS>, Error>
Stages fixed submission groups without changing the live flight arena.
pub fn try_reserve<B: App>(self) -> Result<Claim<'d, B>, Error>
Auto Trait Implementations§
impl<'a, 'd> !RefUnwindSafe for Context<'a, 'd>
impl<'a, 'd> !Send for Context<'a, 'd>
impl<'a, 'd> !Sync for Context<'a, 'd>
impl<'a, 'd> !UnwindSafe for Context<'a, 'd>
impl<'a, 'd> Freeze for Context<'a, 'd>
impl<'a, 'd> Unpin for Context<'a, 'd>
impl<'a, 'd> UnsafeUnpin for Context<'a, 'd>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more