Trait der::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.

Object Safety§

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,