#[non_exhaustive]pub enum OverLimit {
Stop,
Sink,
}Expand description
What a run does when a stream that it keeps whole or as lines passes its limit.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Stop
The run stops the child with its escalation and ends as
Stopped(OverLimit).
Sink
The run reads the rest of the stream and drops it, so the child never waits on a full pipe and runs to its end.
Trait Implementations§
impl Copy for OverLimit
impl Eq for OverLimit
impl StructuralPartialEq for OverLimit
Auto Trait Implementations§
impl Forget for OverLimit
impl Freeze for OverLimit
impl Move for OverLimit
impl RefUnwindSafe for OverLimit
impl Send for OverLimit
impl Sync for OverLimit
impl Unpin for OverLimit
impl UnsafeUnpin for OverLimit
impl UnwindSafe for OverLimit
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