Struct sozu_command_futures::CommandCodec
source · [−]pub struct CommandCodec;
Trait Implementations
sourceimpl Decoder for CommandCodec
impl Decoder for CommandCodec
type Item = CommandResponse
type Item = CommandResponse
The type of decoded frames.
sourcefn decode(
&mut self,
buf: &mut BytesMut
) -> Result<Option<CommandResponse>, Error>
fn decode(
&mut self,
buf: &mut BytesMut
) -> Result<Option<CommandResponse>, Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
sourceimpl Encoder<CommandRequest> for CommandCodec
impl Encoder<CommandRequest> for CommandCodec
Auto Trait Implementations
impl RefUnwindSafe for CommandCodec
impl Send for CommandCodec
impl Sync for CommandCodec
impl Unpin for CommandCodec
impl UnwindSafe for CommandCodec
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