Struct cobs::CobsEncoder
source · pub struct CobsEncoder<'a> { /* private fields */ }
Expand description
The CobsEncoder
type is used to encode a stream of bytes to a
given mutable output slice. This is often useful when heap data
structures are not available, or when not all message bytes are
received at a single point in time.
Implementations§
source§impl<'a> CobsEncoder<'a>
impl<'a> CobsEncoder<'a>
sourcepub fn new(out_buf: &'a mut [u8]) -> CobsEncoder<'a>
pub fn new(out_buf: &'a mut [u8]) -> CobsEncoder<'a>
Create a new streaming Cobs Encoder
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CobsEncoder<'a>
impl<'a> RefUnwindSafe for CobsEncoder<'a>
impl<'a> Send for CobsEncoder<'a>
impl<'a> Sync for CobsEncoder<'a>
impl<'a> Unpin for CobsEncoder<'a>
impl<'a> !UnwindSafe for CobsEncoder<'a>
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