Enum musli::mode::Binary

source ·
pub enum Binary {}
Expand description

The binary encoding mode.

Trait Implementations§

source§

impl<'de, T> Decode<'de, Binary> for Bytes<T>

source§

fn decode<D>( _ctx: &D::Cx, _decoder: D ) -> Result<Self, <D::Cx as Context>::Error>
where D: Decoder<'de, Mode = Binary>,

Decode the given input.
source§

impl<'de> Decode<'de, Binary> for Ipv4Addr

Available on crate feature std only.
source§

fn decode<D>(_: &D::Cx, decoder: D) -> Result<Self, D::Error>
where D: Decoder<'de>,

Decode the given input.
source§

impl<'de> Decode<'de, Binary> for Ipv6Addr

Available on crate feature std only.
source§

fn decode<D>(_: &D::Cx, decoder: D) -> Result<Self, D::Error>
where D: Decoder<'de>,

Decode the given input.
source§

impl<'de, T> Decode<'de, Binary> for Packed<T>

source§

fn decode<D>( _ctx: &D::Cx, _decoder: D ) -> Result<Self, <D::Cx as Context>::Error>
where D: Decoder<'de, Mode = Binary>,

Decode the given input.
source§

impl<'de> Decode<'de, Binary> for SocketAddrV4

Available on crate feature std only.
source§

fn decode<D>(_: &D::Cx, decoder: D) -> Result<Self, D::Error>
where D: Decoder<'de, Mode = Binary>,

Decode the given input.
source§

impl<'de> Decode<'de, Binary> for SocketAddrV6

Available on crate feature std only.
source§

fn decode<D>(_: &D::Cx, decoder: D) -> Result<Self, D::Error>
where D: Decoder<'de, Mode = Binary>,

Decode the given input.
source§

impl<T> Encode<Binary> for Bytes<T>
where T: EncodeBytes<Binary>,

source§

fn encode<E>( &self, _ctx: &E::Cx, _encoder: E ) -> Result<<E as Encoder>::Ok, <E as Encoder>::Error>
where E: Encoder<Mode = Binary>,

Encode the given output.
source§

impl Encode<Binary> for Ipv4Addr

Available on crate feature std only.
source§

fn encode<E>(&self, _: &E::Cx, encoder: E) -> Result<E::Ok, E::Error>
where E: Encoder,

Encode the given output.
source§

impl Encode<Binary> for Ipv6Addr

Available on crate feature std only.
source§

fn encode<E>(&self, _: &E::Cx, encoder: E) -> Result<E::Ok, E::Error>
where E: Encoder<Mode = Binary>,

Encode the given output.
source§

impl<T> Encode<Binary> for Packed<T>
where T: EncodePacked<Binary>,

source§

fn encode<E>( &self, _ctx: &E::Cx, _encoder: E ) -> Result<<E as Encoder>::Ok, <E as Encoder>::Error>
where E: Encoder<Mode = Binary>,

Encode the given output.
source§

impl Encode<Binary> for SocketAddrV4

Available on crate feature std only.
source§

fn encode<E>(&self, _: &E::Cx, encoder: E) -> Result<E::Ok, E::Error>
where E: Encoder<Mode = Binary>,

Encode the given output.
source§

impl Encode<Binary> for SocketAddrV6

Available on crate feature std only.
source§

fn encode<E>(&self, _: &E::Cx, encoder: E) -> Result<E::Ok, E::Error>
where E: Encoder<Mode = Binary>,

Encode the given output.

Auto Trait Implementations§

§

impl Freeze for Binary

§

impl RefUnwindSafe for Binary

§

impl Send for Binary

§

impl Sync for Binary

§

impl Unpin for Binary

§

impl UnwindSafe for Binary

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.