#[non_exhaustive]pub enum LongLine {
Over,
Skip,
}Expand description
What a line longer than the limit of one line does to a stream delivered as lines.
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.
Over
The stream is over its limit, and its over policy applies.
Skip
The run drops that line up to its end and delivers the next line.
Captured::long_line tells that it dropped at least one line, and
Captured::over_limit stays false unless the total limit passes.
Trait Implementations§
impl Copy for LongLine
impl Eq for LongLine
impl StructuralPartialEq for LongLine
Auto Trait Implementations§
impl Forget for LongLine
impl Freeze for LongLine
impl RefUnwindSafe for LongLine
impl Send for LongLine
impl Sync for LongLine
impl Unpin for LongLine
impl UnsafeUnpin for LongLine
impl UnwindSafe for LongLine
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