pub trait DecodeValue<'a>: Sized {
    fn decode_value<R>(reader: &mut R, header: Header) -> Result<Self, Error>
    where
        R: Reader<'a>
; }
Available on crate feature pkcs8 only.
Expand description

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

Required Methods§

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

Attempt to decode this message using the provided Reader.

Implementations on Foreign Types§

§

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

§

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

§

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

§

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

§

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

§

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

§

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

Available on crate feature alloc only.
§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

fn decode_value<R>(reader: &mut R, header: Header) -> Result<[T; N], Error>where
    R: Reader<'a>,

§

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

Available on crate feature alloc only.
§

fn decode_value<R>(
    reader: &mut R,
    header: Header
) -> Result<Vec<T, Global>, Error>where
    R: Reader<'a>,

§

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

§

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

§

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

§

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

Implementors§

source§

impl<'a> DecodeValue<'a> for PrivateKeyInfo<'a>

§

impl<'a> DecodeValue<'a> for AlgorithmIdentifier<'a>

§

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

§

impl<'a> DecodeValue<'a> for SubjectPublicKeyInfo<'a>

§

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

Available on crate feature alloc only.
§

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

§

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

§

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

§

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

§

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

Available on crate feature alloc only.
§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

Available on crate feature alloc only.
§

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

§

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