der

Trait DecodeValue

Source
pub trait DecodeValue<'a>: Sized {
    // Required method
    fn decode_value<R: Reader<'a>>(
        reader: &mut R,
        header: Header,
    ) -> 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<R: Reader<'a>>(reader: &mut R, header: Header) -> Result<Self>

Attempt to decode this message using the provided Reader.

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<'a> DecodeValue<'a> for bool

Source§

fn decode_value<R: Reader<'a>>(reader: &mut R, header: Header) -> Result<Self>

Source§

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

Source§

fn decode_value<R: Reader<'a>>(reader: &mut R, header: Header) -> Result<Self>

Source§

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

Source§

fn decode_value<R: Reader<'a>>(reader: &mut R, header: Header) -> Result<Self>

Source§

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

Source§

fn decode_value<R: Reader<'a>>(reader: &mut R, header: Header) -> Result<Self>

Source§

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

Source§

fn decode_value<R: Reader<'a>>(reader: &mut R, header: Header) -> Result<Self>

Source§

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

Source§

fn decode_value<R: Reader<'a>>(reader: &mut R, header: Header) -> Result<Self>

Source§

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

Source§

fn decode_value<R: Reader<'a>>(reader: &mut R, header: Header) -> Result<Self>

Source§

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

Source§

fn decode_value<R: Reader<'a>>(reader: &mut R, header: Header) -> Result<Self>

Source§

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

Source§

fn decode_value<R: Reader<'a>>(reader: &mut R, header: Header) -> Result<Self>

Source§

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

Source§

fn decode_value<R: Reader<'a>>(reader: &mut R, header: Header) -> Result<Self>

Source§

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

Source§

fn decode_value<R: Reader<'a>>(reader: &mut R, header: Header) -> Result<Self>

Source§

impl<'a> DecodeValue<'a> for ()

Source§

fn decode_value<R: Reader<'a>>(reader: &mut R, header: Header) -> Result<Self>

Source§

impl<'a> DecodeValue<'a> for String

Source§

fn decode_value<R: Reader<'a>>(reader: &mut R, header: Header) -> Result<Self>

Source§

impl<'a, T> DecodeValue<'a> for Vec<T>
where T: Decode<'a>,

Source§

fn decode_value<R: Reader<'a>>(reader: &mut R, header: Header) -> Result<Self>

Source§

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

Source§

fn decode_value<R: Reader<'a>>(reader: &mut R, header: Header) -> Result<Self>

Implementors§

Source§

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

Source§

impl<'a> DecodeValue<'a> for BitStringRef<'a>

Source§

impl<'a> DecodeValue<'a> for GeneralizedTime

Source§

impl<'a> DecodeValue<'a> for Ia5StringRef<'a>

Source§

impl<'a> DecodeValue<'a> for Null

Source§

impl<'a> DecodeValue<'a> for ObjectIdentifier

Source§

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

Source§

impl<'a> DecodeValue<'a> for OctetStringRef<'a>

Source§

impl<'a> DecodeValue<'a> for PrintableStringRef<'a>

Source§

impl<'a> DecodeValue<'a> for SequenceRef<'a>

Source§

impl<'a> DecodeValue<'a> for TeletexStringRef<'a>

Source§

impl<'a> DecodeValue<'a> for UIntRef<'a>

Source§

impl<'a> DecodeValue<'a> for UtcTime

Source§

impl<'a> DecodeValue<'a> for Utf8StringRef<'a>

Source§

impl<'a> DecodeValue<'a> for VideotexStringRef<'a>

Source§

impl<'a> DecodeValue<'a> for DateTime

Source§

impl<'a, T> DecodeValue<'a> for SetOfVec<T>
where T: Decode<'a> + DerOrd,

Source§

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

Source§

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