pub enum LineOverflowBehavior {
DropAdditionalData,
EmitAdditionalAsNewLines,
}Expand description
What should happen when a line is too long?
Variants§
DropAdditionalData
Drop any additional data received after the current line was considered too long until the next newline character is observed, which then starts a new line.
EmitAdditionalAsNewLines
Emit the current line when the maximum allowed length is reached. Any additional data received is immediately taken as the content of the next line.
This option really just adds intermediate line breaks to not let any emitted line exceed the length limit.
No data is dropped with this behavior.
Trait Implementations§
Source§impl Clone for LineOverflowBehavior
impl Clone for LineOverflowBehavior
Source§fn clone(&self) -> LineOverflowBehavior
fn clone(&self) -> LineOverflowBehavior
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LineOverflowBehavior
impl Debug for LineOverflowBehavior
Source§impl Default for LineOverflowBehavior
impl Default for LineOverflowBehavior
Source§fn default() -> LineOverflowBehavior
fn default() -> LineOverflowBehavior
Returns the “default value” for a type. Read more
Source§impl PartialEq for LineOverflowBehavior
impl PartialEq for LineOverflowBehavior
impl Copy for LineOverflowBehavior
impl Eq for LineOverflowBehavior
impl StructuralPartialEq for LineOverflowBehavior
Auto Trait Implementations§
impl Freeze for LineOverflowBehavior
impl RefUnwindSafe for LineOverflowBehavior
impl Send for LineOverflowBehavior
impl Sync for LineOverflowBehavior
impl Unpin for LineOverflowBehavior
impl UnwindSafe for LineOverflowBehavior
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