pub struct Any { /* private fields */ }
Available on crate feature
alloc
only.Expand description
ASN.1 ANY
: represents any explicitly tagged ASN.1 value.
This type provides the same functionality as AnyRef
but owns the
backing data.
Implementations§
source§impl Any
impl Any
sourcepub fn decode_as<'a, T>(&'a self) -> Result<T>where
T: Choice<'a> + DecodeValue<'a>,
pub fn decode_as<'a, T>(&'a self) -> Result<T>where T: Choice<'a> + DecodeValue<'a>,
Attempt to decode this Any
type into the inner value.
sourcepub fn encode_from<T>(msg: &T) -> Result<Self>where
T: Tagged + EncodeValue,
pub fn encode_from<T>(msg: &T) -> Result<Self>where T: Tagged + EncodeValue,
Encode the provided type as an Any
value.
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for Any
impl<'arbitrary> Arbitrary<'arbitrary> for Any
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl<'a> DecodeValue<'a> for Any
impl<'a> DecodeValue<'a> for Any
source§impl EncodeValue for Any
impl EncodeValue for Any
source§impl From<ObjectIdentifier> for Any
Available on crate feature oid
only.
impl From<ObjectIdentifier> for Any
Available on crate feature
oid
only.source§fn from(oid: ObjectIdentifier) -> Any
fn from(oid: ObjectIdentifier) -> Any
Converts to this type from the input type.
source§impl Ord for Any
impl Ord for Any
source§impl OwnedToRef for Any
impl OwnedToRef for Any
source§impl PartialOrd<Any> for Any
impl PartialOrd<Any> for Any
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more