pub struct CapacityWake { /* private fields */ }Expand description
Capacity wake controller
Implementations§
Source§impl CapacityWake
impl CapacityWake
Sourcepub fn new(outer_signal: Arc<AtomicBool>) -> Self
pub fn new(outer_signal: Arc<AtomicBool>) -> Self
Create a new capacity wake with the given outer signal.
Sourcepub fn get_signal(&self) -> CapacitySignal
pub fn get_signal(&self) -> CapacitySignal
Get the capacity signal. When triggered (from either outer abort or wake() call), the poll loop should re-check for work.
Sourcepub fn wake(&self)
pub fn wake(&self)
Wake up the capacity wait. This causes get_signal() to return a triggered signal, and re-arms for the next wait.
Sourcepub fn is_outer_aborted(&self) -> bool
pub fn is_outer_aborted(&self) -> bool
Check if the outer signal has been triggered
Auto Trait Implementations§
impl Freeze for CapacityWake
impl RefUnwindSafe for CapacityWake
impl Send for CapacityWake
impl Sync for CapacityWake
impl Unpin for CapacityWake
impl UnsafeUnpin for CapacityWake
impl UnwindSafe for CapacityWake
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