pub struct OperationGuard { /* private fields */ }Expand description
RAII proof that one operation holds the core open (spec §10.1, S1A-004).
Dropping the guard releases the operation slot; shutdown() waits for all
outstanding guards before closing.
Implementations§
Source§impl OperationGuard
impl OperationGuard
Sourcepub fn lifecycle(&self) -> &Arc<LifecycleController>
pub fn lifecycle(&self) -> &Arc<LifecycleController>
The lifecycle state the guard was taken under (always
LifecycleState::Open).
Trait Implementations§
Source§impl Debug for OperationGuard
impl Debug for OperationGuard
Source§impl Drop for OperationGuard
impl Drop for OperationGuard
Auto Trait Implementations§
impl !RefUnwindSafe for OperationGuard
impl !UnwindSafe for OperationGuard
impl Freeze for OperationGuard
impl Send for OperationGuard
impl Sync for OperationGuard
impl Unpin for OperationGuard
impl UnsafeUnpin for OperationGuard
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more