pub struct ControlWaker(/* private fields */);Expand description
Wakes a coordinated source’s control-plane wait.
Cheap to clone and safe to signal from any thread — including a
pipeline thread on the data path, because wake
never blocks. The channel behind it holds a single slot, so a burst of
signals collapses into one wakeup, and a signal that lands while the
driver is between its check and its park is buffered rather than lost.
Signal it for anything the driver would otherwise only notice between waits: a backend with events ready, a lane reaching end-of-input, a lane reporting poison.
Implementations§
Source§impl ControlWaker
impl ControlWaker
Sourcepub fn inert() -> ControlWaker
pub fn inert() -> ControlWaker
A waker attached to nothing: wake is a
no-op. For unit tests that construct a lane without a driver, and
for sources that have no control-plane park to interrupt.
Trait Implementations§
Source§impl Clone for ControlWaker
impl Clone for ControlWaker
Source§fn clone(&self) -> ControlWaker
fn clone(&self) -> ControlWaker
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ControlWaker
impl RefUnwindSafe for ControlWaker
impl Send for ControlWaker
impl Sync for ControlWaker
impl Unpin for ControlWaker
impl UnsafeUnpin for ControlWaker
impl UnwindSafe for ControlWaker
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