pub struct StreamOutput {
pub buffer: Vec<u8>,
pub bytes_count: usize,
}
Expand description
Output returned by both read and write coroutines.
Fields§
§buffer: Vec<u8>
The inner buffer.
bytes_count: usize
The amount of bytes that have been read/written.
Implementations§
Trait Implementations§
Source§impl Clone for StreamOutput
impl Clone for StreamOutput
Source§fn clone(&self) -> StreamOutput
fn clone(&self) -> StreamOutput
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 StreamOutput
impl Debug for StreamOutput
Source§impl PartialEq for StreamOutput
impl PartialEq for StreamOutput
impl Eq for StreamOutput
impl StructuralPartialEq for StreamOutput
Auto Trait Implementations§
impl Freeze for StreamOutput
impl RefUnwindSafe for StreamOutput
impl Send for StreamOutput
impl Sync for StreamOutput
impl Unpin for StreamOutput
impl UnwindSafe for StreamOutput
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