pub struct InProcEncoder { /* private fields */ }Expand description
Encoder for in-proc transport.
Simply accumulates bytes into a Vec since no serialization is needed.
Implementations§
Source§impl InProcEncoder
impl InProcEncoder
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 InProcEncoder
impl EncodeCtx for InProcEncoder
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 InProcEncoder
impl RefUnwindSafe for InProcEncoder
impl Send for InProcEncoder
impl Sync for InProcEncoder
impl Unpin for InProcEncoder
impl UnwindSafe for InProcEncoder
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