Struct async_streamdata::reader::tokio::BytesReader
source · pub struct BytesReader<T> {
pub inner: T,
pub buf: BytesMut,
}
Expand description
A reader with an internal buffer of bytes::BytesMut
.
Fields§
§inner: T
The inner reader.
buf: BytesMut
The buffer to use for reading the data.
Trait Implementations§
source§impl<T: Debug> Debug for BytesReader<T>
impl<T: Debug> Debug for BytesReader<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for BytesReader<T>where T: RefUnwindSafe,
impl<T> Send for BytesReader<T>where T: Send,
impl<T> Sync for BytesReader<T>where T: Sync,
impl<T> Unpin for BytesReader<T>where T: Unpin,
impl<T> UnwindSafe for BytesReader<T>where T: UnwindSafe,
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