pub struct Buffer { /* private fields */ }
Expand description
A channel buffer.
Trait Implementations§
Source§impl Encoder for Buffer
impl Encoder for Buffer
Source§fn bytes_written(&self) -> usize
fn bytes_written(&self) -> usize
Returns the number of bytes written to the encoder.
Source§impl HandleEncoder for Buffer
impl HandleEncoder for Buffer
Source§fn push_handle(&mut self, handle: Handle) -> Result<(), EncodeError>
fn push_handle(&mut self, handle: Handle) -> Result<(), EncodeError>
Pushes a handle into the encoder.
Source§fn handles_pushed(&self) -> usize
fn handles_pushed(&self) -> usize
Returns the number of handles added to the encoder.
Auto Trait Implementations§
impl Freeze for Buffer
impl RefUnwindSafe for Buffer
impl Send for Buffer
impl Sync for Buffer
impl Unpin for Buffer
impl UnwindSafe for Buffer
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
Source§impl<E> EncoderExt for E
impl<E> EncoderExt for E
Source§fn preallocate<T>(&mut self, len: usize) -> Preallocated<'_, E, T>
fn preallocate<T>(&mut self, len: usize) -> Preallocated<'_, E, T>
Pre-allocates space for a slice of elements.
Source§fn encode_next_slice<T>(&mut self, values: &mut [T]) -> Result<(), EncodeError>where
T: Encode<E>,
fn encode_next_slice<T>(&mut self, values: &mut [T]) -> Result<(), EncodeError>where
T: Encode<E>,
Encodes a slice of elements. Read more
Source§fn encode_next<T>(&mut self, value: &mut T) -> Result<(), EncodeError>where
T: Encode<E>,
fn encode_next<T>(&mut self, value: &mut T) -> Result<(), EncodeError>where
T: Encode<E>,
Encodes a value. Read more