pub struct UncompressedFrameEncoder { /* private fields */ }
Expand description
Post-V5 encoder with support for envelope frames with CRC checksum.
Trait Implementations
sourceimpl Clone for UncompressedFrameEncoder
impl Clone for UncompressedFrameEncoder
sourcefn clone(&self) -> UncompressedFrameEncoder
fn clone(&self) -> UncompressedFrameEncoder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for UncompressedFrameEncoder
impl Debug for UncompressedFrameEncoder
sourceimpl Default for UncompressedFrameEncoder
impl Default for UncompressedFrameEncoder
sourceimpl FrameEncoder for UncompressedFrameEncoder
impl FrameEncoder for UncompressedFrameEncoder
sourcefn can_fit(&self, len: usize) -> bool
fn can_fit(&self, len: usize) -> bool
Determines if payload of given size can fit in current frame buffer.
sourcefn add_envelope(&mut self, envelope: Vec<u8>)
fn add_envelope(&mut self, envelope: Vec<u8>)
Adds a self-contained envelope to current frame.
sourcefn finalize_self_contained(&mut self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
fn finalize_self_contained(&mut self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
Finalizes a self-contained encoded frame in the buffer.
sourcefn finalize_non_self_contained(&mut self, envelope: &[u8]) -> (usize, &[u8])
fn finalize_non_self_contained(&mut self, envelope: &[u8]) -> (usize, &[u8])
Appends a large envelope and finalizes non self-contained encoded frame in the buffer.
Copies as much envelope data as possible and returns new envelope buffer start. Read more
sourcefn has_envelopes(&self) -> bool
fn has_envelopes(&self) -> bool
Checks if current frame contains any envelopes.
Auto Trait Implementations
impl RefUnwindSafe for UncompressedFrameEncoder
impl Send for UncompressedFrameEncoder
impl Sync for UncompressedFrameEncoder
impl Unpin for UncompressedFrameEncoder
impl UnwindSafe for UncompressedFrameEncoder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more