struct ReadLimit {
skip_lines: usize,
lines: usize,
probe_bytes: usize,
}Expand description
The leading part of a body that needs to be read.
Fields§
§skip_lines: usizeNumber of leading lines discarded instead of retained, because they are not displayed.
lines: usizeNumber of leading lines (skipped ones included) read in full, including their terminating newline.
probe_bytes: usizeNumber of bytes read past those lines, to tell whether more follows.
Trait Implementations§
impl Copy for ReadLimit
impl Eq for ReadLimit
impl StructuralPartialEq for ReadLimit
Auto Trait Implementations§
impl Forget for ReadLimit
impl Freeze for ReadLimit
impl Move for ReadLimit
impl RefUnwindSafe for ReadLimit
impl Send for ReadLimit
impl Sync for ReadLimit
impl Unpin for ReadLimit
impl UnsafeUnpin for ReadLimit
impl UnwindSafe for ReadLimit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more