pub struct PriorityResourceGuard { /* private fields */ }Expand description
RAII guard that holds one unit of a PriorityResource.
The unit is released automatically when this value is dropped, waking the highest-priority suspended requester (if any).
Trait Implementations§
Source§impl Debug for PriorityResourceGuard
impl Debug for PriorityResourceGuard
Source§impl Drop for PriorityResourceGuard
impl Drop for PriorityResourceGuard
Auto Trait Implementations§
impl !RefUnwindSafe for PriorityResourceGuard
impl !Send for PriorityResourceGuard
impl !Sync for PriorityResourceGuard
impl !UnwindSafe for PriorityResourceGuard
impl Freeze for PriorityResourceGuard
impl Unpin for PriorityResourceGuard
impl UnsafeUnpin for PriorityResourceGuard
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