pub struct InstanceScope<'i> { /* private fields */ }Expand description
Invariant-lifetime-branded handle to an instance (GhostCell pattern,
A19). The lifetime 'i prevents an Effect<Authorized, 'i> of one
instance from being passed to another instance’s dispatcher —
the mismatch fails lifetime unification at compile time.
Implementations§
Source§impl<'i> InstanceScope<'i>
impl<'i> InstanceScope<'i>
Sourcepub fn instance_id(&self) -> InstanceId
pub fn instance_id(&self) -> InstanceId
InstanceId this scope is branded against.
Auto Trait Implementations§
impl<'i> Freeze for InstanceScope<'i>
impl<'i> RefUnwindSafe for InstanceScope<'i>
impl<'i> Send for InstanceScope<'i>
impl<'i> Sync for InstanceScope<'i>
impl<'i> Unpin for InstanceScope<'i>
impl<'i> UnsafeUnpin for InstanceScope<'i>
impl<'i> UnwindSafe for InstanceScope<'i>
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