Enum pkcs12::safe_bag::Pkcs8Version
source · #[repr(u8)]pub enum Pkcs8Version {
V0 = 0,
}
Expand description
Version for the PrivateKeyInfo structure as defined in RFC 5208 Section 5.
Variants§
V0 = 0
syntax version 3
Trait Implementations§
source§impl Clone for Pkcs8Version
impl Clone for Pkcs8Version
source§fn clone(&self) -> Pkcs8Version
fn clone(&self) -> Pkcs8Version
Returns a copy of the value. Read more
1.0.0 · 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 Pkcs8Version
impl Debug for Pkcs8Version
source§impl<'__der_lifetime> DecodeValue<'__der_lifetime> for Pkcs8Version
impl<'__der_lifetime> DecodeValue<'__der_lifetime> for Pkcs8Version
source§impl EncodeValue for Pkcs8Version
impl EncodeValue for Pkcs8Version
source§impl Ord for Pkcs8Version
impl Ord for Pkcs8Version
source§fn cmp(&self, other: &Pkcs8Version) -> Ordering
fn cmp(&self, other: &Pkcs8Version) -> Ordering
1.21.0 · 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 Pkcs8Version
impl PartialEq for Pkcs8Version
source§fn eq(&self, other: &Pkcs8Version) -> bool
fn eq(&self, other: &Pkcs8Version) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for Pkcs8Version
impl PartialOrd for Pkcs8Version
source§fn partial_cmp(&self, other: &Pkcs8Version) -> Option<Ordering>
fn partial_cmp(&self, other: &Pkcs8Version) -> Option<Ordering>
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 moresource§impl TryFrom<u8> for Pkcs8Version
impl TryFrom<u8> for Pkcs8Version
impl Copy for Pkcs8Version
impl Eq for Pkcs8Version
impl StructuralEq for Pkcs8Version
impl StructuralPartialEq for Pkcs8Version
Auto Trait Implementations§
impl RefUnwindSafe for Pkcs8Version
impl Send for Pkcs8Version
impl Sync for Pkcs8Version
impl Unpin for Pkcs8Version
impl UnwindSafe for Pkcs8Version
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
source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
source§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided Writer
.
source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this value to the provided byte slice, returning a sub-slice
containing the encoded message.