pub struct Context<'a, 'd> { /* private fields */ }Expand description
Restricted construction context for driver-domain storage.
This exposes stable domain identities and route reservation, but deliberately cannot submit operations. A factory therefore cannot publish a pointer into its output before the runtime has pinned that output.
ⓘ
use dope_core::driver::{
ops::Submit,
storage::Context,
route::{KeyTag, Operation},
};
fn submit_during_build<'d>(
context: &mut Context<'_, 'd>,
target: Operation<'d, KeyTag<1>>,
) {
let _ = Submit::cancel(context, target);
}Implementations§
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