pub enum DistributionPointName<'a> {
FullName(Vec<GeneralName<'a>>),
NameRelativeToCRLIssuer(SetOf<AttributeTypeAndValue<'a>>),
}Variants§
FullName(Vec<GeneralName<'a>>)
NameRelativeToCRLIssuer(SetOf<AttributeTypeAndValue<'a>>)
Implementations§
Source§impl<'a> DistributionPointName<'a>
impl<'a> DistributionPointName<'a>
Sourcepub fn from_der(data: &'a [u8]) -> Result<Self>
pub fn from_der(data: &'a [u8]) -> Result<Self>
Parse a DER-encoded DistributionPointName from borrowed bytes.
The returned value borrows from data for zero-copy fields.
Sourcepub fn to_der(&self) -> Result<Vec<u8>>
pub fn to_der(&self) -> Result<Vec<u8>>
Encode this value to DER bytes.
Returns a synta::Result wrapping the DER-encoded bytes,
or an error if encoding fails.
Sourcepub fn format_asn1(&self, mode: Asn1FormatMode) -> String
pub fn format_asn1(&self, mode: Asn1FormatMode) -> String
Format the encoded DER bytes of this value.
mode controls the output style:
synta::Asn1FormatMode::Hex— space-separated uppercase hex bytessynta::Asn1FormatMode::Text— indented human-readable ASN.1 dump
Trait Implementations§
Source§impl<'a> Clone for DistributionPointName<'a>
impl<'a> Clone for DistributionPointName<'a>
Source§fn clone(&self) -> DistributionPointName<'a>
fn clone(&self) -> DistributionPointName<'a>
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<'a> Debug for DistributionPointName<'a>
impl<'a> Debug for DistributionPointName<'a>
Source§impl<'a> Decode<'a> for DistributionPointName<'a>
impl<'a> Decode<'a> for DistributionPointName<'a>
Source§impl<'a> Encode for DistributionPointName<'a>
impl<'a> Encode for DistributionPointName<'a>
Source§impl<'a> PartialEq for DistributionPointName<'a>
impl<'a> PartialEq for DistributionPointName<'a>
Source§fn eq(&self, other: &DistributionPointName<'a>) -> bool
fn eq(&self, other: &DistributionPointName<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for DistributionPointName<'a>
Source§impl<'a> TagForOptional for DistributionPointName<'a>
impl<'a> TagForOptional for DistributionPointName<'a>
Source§fn optional_tag() -> Option<Tag>
fn optional_tag() -> Option<Tag>
CHOICE types have no single fixed tag; return None so that
callers use accepts_tag_for_optional instead.
Source§fn accepts_tag_for_optional(tag: Tag) -> bool
fn accepts_tag_for_optional(tag: Tag) -> bool
Return true when tag matches any of the CHOICE variant tags.
This avoids the unreachable!() that Tagged::tag() would hit
via the blanket impl<T: Tagged> TagForOptional for T.
Auto Trait Implementations§
impl<'a> Freeze for DistributionPointName<'a>
impl<'a> RefUnwindSafe for DistributionPointName<'a>
impl<'a> Send for DistributionPointName<'a>
impl<'a> Sync for DistributionPointName<'a>
impl<'a> Unpin for DistributionPointName<'a>
impl<'a> UnsafeUnpin for DistributionPointName<'a>
impl<'a> UnwindSafe for DistributionPointName<'a>
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