pub struct StopReceiver { /* private fields */ }Expand description
Checked, not blocked on: a Driver owns a single self-contained loop
with no downstream dataflow graph to cascade a stop through (unlike
crate::pipeline::Pipeline’s control channel, which has to reach
every Sink a Queue boundary away before it can call Stop fully
handled). So DriverRunner::stop just flips a flag instead of
sending something that has to be received and acked — nothing here can
reproduce the deadlock that pattern is prone to when a receiver can
legitimately go away without ever looping back to check it (see
Pipeline’s own control_rx field docs for that history). Callers
that need to know run has actually finished watch
DriverRunner::bus instead, same convention as Pipeline.
Implementations§
Source§impl StopReceiver
impl StopReceiver
pub fn is_stopped(&self) -> bool
Trait Implementations§
Source§impl Clone for StopReceiver
impl Clone for StopReceiver
Source§fn clone(&self) -> StopReceiver
fn clone(&self) -> StopReceiver
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 StopReceiver
impl RefUnwindSafe for StopReceiver
impl Send for StopReceiver
impl Sync for StopReceiver
impl Unpin for StopReceiver
impl UnsafeUnpin for StopReceiver
impl UnwindSafe for StopReceiver
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