pub struct AimxCodec;Expand description
The zero-sized AimX NDJSON codec.
Trait Implementations§
impl Copy for AimxCodec
Source§impl EnvelopeCodec for AimxCodec
impl EnvelopeCodec for AimxCodec
Source§fn decode(&self, frame: &[u8]) -> Result<Inbound, CodecError>
fn decode(&self, frame: &[u8]) -> Result<Inbound, CodecError>
Decode one frame into a logical
Inbound message (server reads a request).Source§fn encode(&self, msg: Outbound<'_>, out: &mut Vec<u8>) -> Result<(), CodecError>
fn encode(&self, msg: Outbound<'_>, out: &mut Vec<u8>) -> Result<(), CodecError>
Encode a logical
Outbound message, appending its bytes to out
(server writes a reply/event).Source§fn encode_inbound(
&self,
msg: Inbound,
out: &mut Vec<u8>,
) -> Result<(), CodecError>
fn encode_inbound( &self, msg: Inbound, out: &mut Vec<u8>, ) -> Result<(), CodecError>
Source§fn decode_outbound<'a>(
&self,
frame: &'a [u8],
) -> Result<Outbound<'a>, CodecError>
fn decode_outbound<'a>( &self, frame: &'a [u8], ) -> Result<Outbound<'a>, CodecError>
Auto Trait Implementations§
impl Freeze for AimxCodec
impl RefUnwindSafe for AimxCodec
impl Send for AimxCodec
impl Sync for AimxCodec
impl Unpin for AimxCodec
impl UnsafeUnpin for AimxCodec
impl UnwindSafe for AimxCodec
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