pub enum PushError {
Full(SignalItem),
Discontinuity {
expected: Tick,
found: Tick,
},
Channels {
expected: u8,
found: u8,
},
Ended,
Stalled {
waiting: Vec<(String, Wait)>,
},
UnknownSource(usize),
}Expand description
Why a source did not take an item.
Variants§
Full(SignalItem)
The source holds as many blocks as it may; run the pipeline and read its outputs, then push the item again. If the samples cannot wait, push a gap for them instead.
Discontinuity
The item does not follow the previous one; lost samples must be announced as a gap.
Channels
The block has another channel count than the source.
Ended
The source has ended.
Stalled
The source is full, the last run moved nothing and no exposed output has anything to read: the pipeline can make no progress, however it is driven. A node that waits on one input while another holds the source’s queue does this; see design.md §4.
UnknownSource(usize)
No such source.
Trait Implementations§
Source§impl Error for PushError
impl Error for PushError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for PushError
impl RefUnwindSafe for PushError
impl Send for PushError
impl Sync for PushError
impl Unpin for PushError
impl UnsafeUnpin for PushError
impl UnwindSafe for PushError
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