pub enum PipelineBridgeError {
Superseded,
SendTimedOut(Duration),
SeekUnsupported,
Disconnected,
}Expand description
Errors specific to PipelineBridge.
Variants§
Superseded
This sink was replaced by a later PipelineBridgeHandle::connect,
or had already reported its own end.
Reported rather than ignored so the pipeline still pushing into it
hears about it: a Queue posts it to its own bus and stops, which is
how a producer nobody is reading learns to end.
SendTimedOut(Duration)
The buffer could not be handed over before the configured
OverflowPolicy::Block timeout elapsed.
SeekUnsupported
Seeking was asked of a bridge. The timeline belongs to whatever feeds it, in a pipeline this one has no authority over.
Disconnected
The bridge’s own pipeline has finished, so there is nothing on the other side any more.
Distinct from PipelineBridgeError::Superseded because the feeding
side answers them differently: a superseded input can connect again,
and this one has nowhere left to connect to.
Trait Implementations§
Source§impl Debug for PipelineBridgeError
impl Debug for PipelineBridgeError
Source§impl Display for PipelineBridgeError
impl Display for PipelineBridgeError
Source§impl Error for PipelineBridgeError
impl Error for PipelineBridgeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()