pub enum EncodingRules {
Der,
}Expand description
ASN.1 encoding rules.
This enum identifies the specific encoding rules which are applied at the time a given document is decoded from a byte/octet serialization.
In addition to the Distinguished Encoding Rules (DER), this crate also supports a strict subset of the Basic Encoding Rules (BER) which supports the minimum amount of additional productions beyond DER needed to interoperate with other implementations of cryptography-oriented formats which utilize BER, e.g. CMS, PKCS#8.
Variants§
Der
Distinguished Encoding Rules.
Implementations§
Trait Implementations§
Source§impl Clone for EncodingRules
impl Clone for EncodingRules
Source§fn clone(&self) -> EncodingRules
fn clone(&self) -> EncodingRules
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncodingRules
impl Debug for EncodingRules
Source§impl Default for EncodingRules
impl Default for EncodingRules
Source§fn default() -> EncodingRules
fn default() -> EncodingRules
Returns the “default value” for a type. Read more
Source§impl Display for EncodingRules
impl Display for EncodingRules
Source§impl FromStr for EncodingRules
impl FromStr for EncodingRules
Source§impl Ord for EncodingRules
impl Ord for EncodingRules
Source§fn cmp(&self, other: &EncodingRules) -> Ordering
fn cmp(&self, other: &EncodingRules) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EncodingRules
impl PartialEq for EncodingRules
Source§fn eq(&self, other: &EncodingRules) -> bool
fn eq(&self, other: &EncodingRules) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for EncodingRules
impl PartialOrd for EncodingRules
impl Copy for EncodingRules
impl Eq for EncodingRules
impl StructuralPartialEq for EncodingRules
Auto Trait Implementations§
impl Freeze for EncodingRules
impl RefUnwindSafe for EncodingRules
impl Send for EncodingRules
impl Sync for EncodingRules
impl Unpin for EncodingRules
impl UnsafeUnpin for EncodingRules
impl UnwindSafe for EncodingRules
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more