pub struct StreamEstimate {
pub bytes: u64,
pub over_at: Option<usize>,
pub read: bool,
}Expand description
The estimate of one read.
Fields§
§bytes: u64What is kept and the heaviest element in hand, of everything read up to where the estimate stopped.
over_at: Option<usize>The estimate passed the limit: the offset of the element that took it there. Nothing after it was read.
read: boolThe frame was followed to its end. false with no over_at: the
bytes are not a BEEF frame this reader follows (the stream refuses
them too), and bytes is of what came before.
Implementations§
Trait Implementations§
Source§impl Clone for StreamEstimate
impl Clone for StreamEstimate
impl Copy for StreamEstimate
Source§impl Debug for StreamEstimate
impl Debug for StreamEstimate
impl Eq for StreamEstimate
Source§impl PartialEq for StreamEstimate
impl PartialEq for StreamEstimate
impl StructuralPartialEq for StreamEstimate
Auto Trait Implementations§
impl Freeze for StreamEstimate
impl RefUnwindSafe for StreamEstimate
impl Send for StreamEstimate
impl Sync for StreamEstimate
impl Unpin for StreamEstimate
impl UnsafeUnpin for StreamEstimate
impl UnwindSafe for StreamEstimate
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