pub struct StreamEncoder { /* private fields */ }Expand description
Encoder for stream transport.
Simply accumulates bytes into a Vec.
Implementations§
Source§impl StreamEncoder
impl StreamEncoder
Sourcepub fn set_desc(&mut self, desc: MsgDescHot)
pub fn set_desc(&mut self, desc: MsgDescHot)
Set the descriptor for this frame.
Trait Implementations§
Source§impl EncodeCtx for StreamEncoder
impl EncodeCtx for StreamEncoder
Source§fn encode_bytes(&mut self, bytes: &[u8]) -> Result<(), EncodeError>
fn encode_bytes(&mut self, bytes: &[u8]) -> Result<(), EncodeError>
Encode raw bytes into the frame. Read more
Auto Trait Implementations§
impl Freeze for StreamEncoder
impl RefUnwindSafe for StreamEncoder
impl Send for StreamEncoder
impl Sync for StreamEncoder
impl Unpin for StreamEncoder
impl UnwindSafe for StreamEncoder
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more