#[non_exhaustive]pub struct ResponseCodec;Expand description
Codec for responses.
Implementations§
Source§impl ResponseCodec
impl ResponseCodec
Trait Implementations§
Source§impl Clone for ResponseCodec
impl Clone for ResponseCodec
Source§fn clone(&self) -> ResponseCodec
fn clone(&self) -> ResponseCodec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResponseCodec
impl Debug for ResponseCodec
Source§impl Decoder for ResponseCodec
impl Decoder for ResponseCodec
type Message<'a> = Response<'a>
type Error<'a> = ResponseDecodeError
fn decode<'a>( &self, input: &'a [u8], ) -> Result<(&'a [u8], Self::Message<'a>), Self::Error<'static>>
fn decode_static<'a>(
&self,
input: &'a [u8],
) -> Result<(&'a [u8], Self::Message<'static>), Self::Error<'static>>where
Self::Message<'a>: IntoStatic<Static = Self::Message<'static>>,
Self::Error<'a>: IntoStatic<Static = Self::Error<'static>>,
Source§impl Default for ResponseCodec
impl Default for ResponseCodec
Source§fn default() -> ResponseCodec
fn default() -> ResponseCodec
Returns the “default value” for a type. Read more
Source§impl Encoder for ResponseCodec
impl Encoder for ResponseCodec
Source§impl PartialEq for ResponseCodec
impl PartialEq for ResponseCodec
impl StructuralPartialEq for ResponseCodec
Auto Trait Implementations§
impl Freeze for ResponseCodec
impl RefUnwindSafe for ResponseCodec
impl Send for ResponseCodec
impl Sync for ResponseCodec
impl Unpin for ResponseCodec
impl UnsafeUnpin for ResponseCodec
impl UnwindSafe for ResponseCodec
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