pub struct SharedPermitState { /* private fields */ }Expand description
Caller-owned atomic authority shared by all explicit permit-handle clones.
The state is initialized only through a shared permit constructor taking
&mut SharedPermitState. That exclusive borrow prevents safe code from
binding two independent plans to the same atomic state concurrently.
Implementations§
Sourcepub fn state(&self) -> PermitState
pub fn state(&self) -> PermitState
Returns the current atomic lifecycle state.
Trait Implementations§
Auto Trait Implementations§
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