der

Trait DecodeValue

Source
pub trait DecodeValue<'a>: Sized {
    // Required method
    fn decode_value(decoder: &mut Decoder<'a>, length: Length) -> Result<Self>;
}
Expand description

Decode the value part of a Tag-Length-Value encoded field, sans the Tag and Length.

Required Methods§

Source

fn decode_value(decoder: &mut Decoder<'a>, length: Length) -> Result<Self>

Attempt to decode this message using the provided Decoder.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl DecodeValue<'_> for ()

Source§

fn decode_value(decoder: &mut Decoder<'_>, length: Length) -> Result<Self>

Source§

impl<'a> DecodeValue<'a> for bool

Source§

fn decode_value(decoder: &mut Decoder<'a>, length: Length) -> Result<Self>

Source§

impl<'a> DecodeValue<'a> for i8

Source§

fn decode_value(decoder: &mut Decoder<'a>, length: Length) -> Result<Self>

Source§

impl<'a> DecodeValue<'a> for i16

Source§

fn decode_value(decoder: &mut Decoder<'a>, length: Length) -> Result<Self>

Source§

impl<'a> DecodeValue<'a> for i32

Source§

fn decode_value(decoder: &mut Decoder<'a>, length: Length) -> Result<Self>

Source§

impl<'a> DecodeValue<'a> for i64

Source§

fn decode_value(decoder: &mut Decoder<'a>, length: Length) -> Result<Self>

Source§

impl<'a> DecodeValue<'a> for i128

Source§

fn decode_value(decoder: &mut Decoder<'a>, length: Length) -> Result<Self>

Source§

impl<'a> DecodeValue<'a> for u8

Source§

fn decode_value(decoder: &mut Decoder<'a>, length: Length) -> Result<Self>

Source§

impl<'a> DecodeValue<'a> for u16

Source§

fn decode_value(decoder: &mut Decoder<'a>, length: Length) -> Result<Self>

Source§

impl<'a> DecodeValue<'a> for u32

Source§

fn decode_value(decoder: &mut Decoder<'a>, length: Length) -> Result<Self>

Source§

impl<'a> DecodeValue<'a> for u64

Source§

fn decode_value(decoder: &mut Decoder<'a>, length: Length) -> Result<Self>

Source§

impl<'a> DecodeValue<'a> for u128

Source§

fn decode_value(decoder: &mut Decoder<'a>, length: Length) -> Result<Self>

Source§

impl<'a, T, const N: usize> DecodeValue<'a> for [T; N]
where T: Decodable<'a>,

Source§

fn decode_value(decoder: &mut Decoder<'a>, length: Length) -> Result<Self>

Implementors§

Source§

impl DecodeValue<'_> for GeneralizedTime

Source§

impl DecodeValue<'_> for Null

Source§

impl DecodeValue<'_> for ObjectIdentifier

Source§

impl DecodeValue<'_> for UtcTime

Source§

impl DecodeValue<'_> for DateTime

Source§

impl<'a> DecodeValue<'a> for BitString<'a>

Source§

impl<'a> DecodeValue<'a> for Ia5String<'a>

Source§

impl<'a> DecodeValue<'a> for OctetString<'a>

Source§

impl<'a> DecodeValue<'a> for PrintableString<'a>

Source§

impl<'a> DecodeValue<'a> for UIntBytes<'a>

Source§

impl<'a> DecodeValue<'a> for Utf8String<'a>

Source§

impl<'a, T, const N: usize> DecodeValue<'a> for SequenceOf<T, N>
where T: Decodable<'a>,

Source§

impl<'a, T, const N: usize> DecodeValue<'a> for SetOf<T, N>
where T: Clone + Decodable<'a> + DerOrd,