pub enum CapOutcome {
Line,
TooLarge,
Eof,
}Expand description
The outcome of a single capped line read.
Variants§
Line
A line (including its trailing newline, if any) was read within cap;
buf holds it.
TooLarge
The line reached cap bytes before a newline was seen; buf holds the
capped prefix. The caller decides how to reject it.
Eof
End of input reached with no further bytes; buf is empty.
Trait Implementations§
Source§impl Clone for CapOutcome
impl Clone for CapOutcome
Source§fn clone(&self) -> CapOutcome
fn clone(&self) -> CapOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CapOutcome
Source§impl Debug for CapOutcome
impl Debug for CapOutcome
impl Eq for CapOutcome
Source§impl PartialEq for CapOutcome
impl PartialEq for CapOutcome
impl StructuralPartialEq for CapOutcome
Auto Trait Implementations§
impl Freeze for CapOutcome
impl RefUnwindSafe for CapOutcome
impl Send for CapOutcome
impl Sync for CapOutcome
impl Unpin for CapOutcome
impl UnsafeUnpin for CapOutcome
impl UnwindSafe for CapOutcome
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