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
Sourcepub fn is_stopped(&self) -> bool
pub fn is_stopped(&self) -> bool
Returns whether the owning DriverRunner has requested shutdown.
Trait Implementations§
Source§impl Clone for StopReceiver
impl Clone for StopReceiver
Source§fn clone(&self) -> StopReceiver
fn clone(&self) -> StopReceiver
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more