pub struct HttpStringCodec;Expand description
HTTP string codec for serializing/deserializing to/from strings.
Trait Implementations§
Source§impl Codec for HttpStringCodec
impl Codec for HttpStringCodec
Source§type Serializer = HttpStringSerializer
type Serializer = HttpStringSerializer
The serializer type for this codec.
Source§type Deserializer = HttpStringDeserializer<'static>
type Deserializer = HttpStringDeserializer<'static>
The deserializer type for this codec.
Source§fn create_serializer(&self) -> Self::Serializer
fn create_serializer(&self) -> Self::Serializer
Creates a new serializer for this codec.
Source§fn create_deserializer(&self, input: &[u8]) -> Self::Deserializer
fn create_deserializer(&self, input: &[u8]) -> Self::Deserializer
Creates a new deserializer for this codec from the given input bytes.
Auto Trait Implementations§
impl Freeze for HttpStringCodec
impl RefUnwindSafe for HttpStringCodec
impl Send for HttpStringCodec
impl Sync for HttpStringCodec
impl Unpin for HttpStringCodec
impl UnwindSafe for HttpStringCodec
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more