pub enum CertRevocationList<'a> {
Owned(OwnedCertRevocationList),
Borrowed(BorrowedCertRevocationList<'a>),
}
Expand description
A RFC 52801 profile Certificate Revocation List (CRL).
May be either an owned, or a borrowed representation.
Variants§
Owned(OwnedCertRevocationList)
Available on crate feature
alloc
only.An owned representation of a CRL.
Borrowed(BorrowedCertRevocationList<'a>)
A borrowed representation of a CRL.
Implementations§
Source§impl<'a> CertRevocationList<'a>
impl<'a> CertRevocationList<'a>
Sourcepub fn issuing_distribution_point(&self) -> Option<&[u8]>
pub fn issuing_distribution_point(&self) -> Option<&[u8]>
Return the DER encoded issuing distribution point of the CRL, if any.
Sourcepub fn find_serial(
&self,
serial: &[u8],
) -> Result<Option<BorrowedRevokedCert<'_>>, Error>
pub fn find_serial( &self, serial: &[u8], ) -> Result<Option<BorrowedRevokedCert<'_>>, Error>
Try to find a revoked certificate in the CRL by DER encoded serial number. This may yield an error if the CRL has malformed revoked certificates.
Trait Implementations§
Source§impl<'a> Debug for CertRevocationList<'a>
impl<'a> Debug for CertRevocationList<'a>
Source§impl<'a> From<BorrowedCertRevocationList<'a>> for CertRevocationList<'a>
impl<'a> From<BorrowedCertRevocationList<'a>> for CertRevocationList<'a>
Source§fn from(crl: BorrowedCertRevocationList<'a>) -> Self
fn from(crl: BorrowedCertRevocationList<'a>) -> Self
Converts to this type from the input type.
Source§impl From<OwnedCertRevocationList> for CertRevocationList<'_>
Available on crate feature alloc
only.
impl From<OwnedCertRevocationList> for CertRevocationList<'_>
Available on crate feature
alloc
only.Source§fn from(crl: OwnedCertRevocationList) -> Self
fn from(crl: OwnedCertRevocationList) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for CertRevocationList<'a>
impl<'a> RefUnwindSafe for CertRevocationList<'a>
impl<'a> Send for CertRevocationList<'a>
impl<'a> Sync for CertRevocationList<'a>
impl<'a> Unpin for CertRevocationList<'a>
impl<'a> UnwindSafe for CertRevocationList<'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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 152 bytes
Size for each variant:
Owned
: 152 bytesBorrowed
: 112 bytes