pub struct BytesBuf<B>(/* private fields */);
Expand description
A zero-copy reader that wraps a [bytes::Buf
].
Trait Implementations§
Source§impl<'a, B: Buf> ZeroCopyReader<'a> for BytesBuf<B>
impl<'a, B: Buf> ZeroCopyReader<'a> for BytesBuf<B>
Auto Trait Implementations§
impl<B> Freeze for BytesBuf<B>where
B: Freeze,
impl<B> RefUnwindSafe for BytesBuf<B>where
B: RefUnwindSafe,
impl<B> Send for BytesBuf<B>where
B: Send,
impl<B> Sync for BytesBuf<B>where
B: Sync,
impl<B> Unpin for BytesBuf<B>where
B: Unpin,
impl<B> UnwindSafe for BytesBuf<B>where
B: 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