pub struct CollectedStream {
pub bytes: Vec<u8>,
pub total_bytes: usize,
pub overflowed: bool,
}Expand description
Bounded capture of a single child output stream.
Fields§
§bytes: Vec<u8>Retained prefix of the stream, bounded by the configured stream limit.
total_bytes: usizeTotal number of bytes read from the child stream, including truncated bytes.
overflowed: boolWhether additional bytes were observed after the retained prefix filled the limit.
Trait Implementations§
Source§impl Clone for CollectedStream
impl Clone for CollectedStream
Source§fn clone(&self) -> CollectedStream
fn clone(&self) -> CollectedStream
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 CollectedStream
impl Debug for CollectedStream
Source§impl PartialEq for CollectedStream
impl PartialEq for CollectedStream
impl Eq for CollectedStream
impl StructuralPartialEq for CollectedStream
Auto Trait Implementations§
impl Freeze for CollectedStream
impl RefUnwindSafe for CollectedStream
impl Send for CollectedStream
impl Sync for CollectedStream
impl Unpin for CollectedStream
impl UnsafeUnpin for CollectedStream
impl UnwindSafe for CollectedStream
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