pub enum Overflow {
Stop,
Skip,
}Expand description
What a decoder does with a line longer than its limit.
Variants§
Stop
Report Frame::TooLarge at once, consuming nothing more. The caller
is expected to drop the connection.
Skip
Discard the rest of the line, then report Frame::TooLarge, so the
connection can carry on with the next line.
Trait Implementations§
impl Copy for Overflow
impl Eq for Overflow
impl StructuralPartialEq for Overflow
Auto Trait Implementations§
impl Freeze for Overflow
impl RefUnwindSafe for Overflow
impl Send for Overflow
impl Sync for Overflow
impl Unpin for Overflow
impl UnsafeUnpin for Overflow
impl UnwindSafe for Overflow
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