pub struct OwnedReadBuffer { /* private fields */ }
Implementations§
Source§impl OwnedReadBuffer
impl OwnedReadBuffer
pub fn new(buff: Vec<u8>) -> OwnedReadBuffer
pub fn new_with_len<'a>(buff: Vec<u8>, len: usize) -> OwnedReadBuffer
pub fn into_write_buffer(self) -> OwnedWriteBuffer
pub fn borrow_write_buffer(&mut self) -> BorrowedWriteBuffer<'_>
Trait Implementations§
Source§impl ReadBuffer for OwnedReadBuffer
impl ReadBuffer for OwnedReadBuffer
fn is_empty(&self) -> bool
fn is_full(&self) -> bool
fn remaining(&self) -> usize
fn capacity(&self) -> usize
fn rewind(&mut self, distance: usize)
fn truncate(&mut self, amount: usize)
fn reset(&mut self)
fn peek_next(&self, count: usize) -> &[u8] ⓘ
fn take_next(&mut self, count: usize) -> &[u8] ⓘ
fn position(&self) -> usize
fn peek_remaining(&self) -> &[u8] ⓘ
fn take_remaining(&mut self) -> &[u8] ⓘ
fn push_to<W: WriteBuffer>(&mut self, output: &mut W)
Auto Trait Implementations§
impl Freeze for OwnedReadBuffer
impl RefUnwindSafe for OwnedReadBuffer
impl Send for OwnedReadBuffer
impl Sync for OwnedReadBuffer
impl Unpin for OwnedReadBuffer
impl UnwindSafe for OwnedReadBuffer
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