Trait DecodeValue

Source
pub trait DecodeValue<'a>: Sized {
    // Required method
    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§

Source

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.

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: &mut R, header: Header) -> Result<bool, Error>
where R: Reader<'a>,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Available on crate feature alloc only.
Source§

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

Source§

impl<'a> DecodeValue<'a> for SystemTime

Available on crate feature std only.
Source§

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

Source§

impl<'a, T> DecodeValue<'a> for Box<T>
where T: DecodeValue<'a>,

Available on crate feature alloc only.
Source§

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

Source§

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

Available on crate feature alloc only.
Source§

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

Source§

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

Source§

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

Implementors§

Source§

impl<'__der> DecodeValue<'__der> for Ia5String

Source§

impl<'__der> DecodeValue<'__der> for PrintableString

Source§

impl<'__der> DecodeValue<'__der> for TeletexString

Source§

impl<'__der, 'a> DecodeValue<'__der> for Ia5StringRef<'a>
where '__der: 'a,

Source§

impl<'__der, 'a> DecodeValue<'__der> for PrintableStringRef<'a>
where '__der: 'a,

Source§

impl<'__der, 'a> DecodeValue<'__der> for TeletexStringRef<'a>
where '__der: 'a,

Source§

impl<'__der, 'a> DecodeValue<'__der> for Utf8StringRef<'a>
where '__der: 'a,

Source§

impl<'__der, 'a> DecodeValue<'__der> for VideotexStringRef<'a>
where '__der: 'a,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<'a> DecodeValue<'a> for BmpString

Source§

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

Source§

impl<'a> DecodeValue<'a> for Int

Source§

impl<'a> DecodeValue<'a> for IntRef<'a>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<'a> DecodeValue<'a> for Uint

Source§

impl<'a> DecodeValue<'a> for UintRef<'a>

Source§

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

Source§

impl<'a> DecodeValue<'a> for Any

Source§

impl<'a> DecodeValue<'a> for AnyRef<'a>

Source§

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

Source§

impl<'a, 'k, Params, Key> DecodeValue<'a> for SubjectPublicKeyInfo<Params, Key>
where 'a: 'k, Key: 'k + Decode<'a>, Params: Choice<'a> + Encode,

Source§

impl<'a, Params> DecodeValue<'a> for AlgorithmIdentifier<Params>
where Params: Choice<'a>,

Source§

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

Available on crate feature alloc only.
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,