pub struct ScopeGate { /* private fields */ }Available on crate feature
scoped-state only.Expand description
The lock a ScopedState waits on while another task’s SetScope
is open.
Each ScopedState::new makes its own gate. Backends that call each
other inside one method (a binding crate over two stores, the testjig)
share one through ScopedState::with_gate: with separate gates, two
scopes opened in opposite orders deadlock. A task running in the scope
that holds the gate passes it, on every state that shares it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ScopeGate
impl !RefUnwindSafe for ScopeGate
impl !UnwindSafe for ScopeGate
impl Forget for ScopeGate
impl Move for ScopeGate
impl Send for ScopeGate
impl Sync for ScopeGate
impl Unpin for ScopeGate
impl UnsafeUnpin for ScopeGate
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