pub enum VmScopeFutureContext {
Owned(Box<Context>),
RefMut(ManagedRefMut<Context>),
Lazy(ManagedLazy<Context>),
}Expand description
How a VmScopeFuture holds the context it runs on.
Variants§
Owned(Box<Context>)
The future owns the context.
RefMut(ManagedRefMut<Context>)
The future holds an exclusive handle to a context owned elsewhere.
Lazy(ManagedLazy<Context>)
The future holds an unclaimed handle, and takes write access only while it steps. Something else can use the context in between.
Trait Implementations§
Source§impl From<Context> for VmScopeFutureContext
impl From<Context> for VmScopeFutureContext
Source§fn from(value: Context) -> VmScopeFutureContext
fn from(value: Context) -> VmScopeFutureContext
Converts to this type from the input type.
Source§impl From<ManagedLazy<Context>> for VmScopeFutureContext
impl From<ManagedLazy<Context>> for VmScopeFutureContext
Source§fn from(value: ManagedLazy<Context>) -> VmScopeFutureContext
fn from(value: ManagedLazy<Context>) -> VmScopeFutureContext
Converts to this type from the input type.
Source§impl From<ManagedRefMut<Context>> for VmScopeFutureContext
impl From<ManagedRefMut<Context>> for VmScopeFutureContext
Source§fn from(value: ManagedRefMut<Context>) -> VmScopeFutureContext
fn from(value: ManagedRefMut<Context>) -> VmScopeFutureContext
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for VmScopeFutureContext
impl !UnwindSafe for VmScopeFutureContext
impl Freeze for VmScopeFutureContext
impl Send for VmScopeFutureContext
impl Sync for VmScopeFutureContext
impl Unpin for VmScopeFutureContext
impl UnsafeUnpin for VmScopeFutureContext
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