Struct CertificateRevocationListDer

struct CertificateRevocationListDer<'a>(_)

A Certificate Revocation List; as specified in RFC 5280

Certificate revocation lists are identified in PEM context as X509 CRL and when stored in a file usually use a .crl extension. For more on PEM files, refer to the crate documentation.

# #[cfg(all(feature = "alloc", feature = "std"))] {
use rustls_pki_types::{CertificateRevocationListDer, pem::PemObject};

// load several from a PEM file
let crls: Vec<_> = CertificateRevocationListDer::pem_file_iter("tests/data/crl.pem")
    .unwrap()
    .collect();
assert!(crls.len() >= 1);

// or one from a PEM byte slice...
# let byte_slice = include_bytes!("../tests/data/crl.pem");
CertificateRevocationListDer::from_pem_slice(byte_slice).unwrap();

// or several from a PEM byte slice
let crls: Vec<_> = CertificateRevocationListDer::pem_slice_iter(byte_slice)
    .collect();
assert!(crls.len() >= 1);
# }

Implementations

impl AsRef for CertificateRevocationListDer<'_>

fn as_ref(self: &Self) -> &[u8]

impl Deref for CertificateRevocationListDer<'_>

fn deref(self: &Self) -> &<Self as >::Target

impl From for CertificateRevocationListDer<'_>

fn from(vec: Vec<u8>) -> Self

impl<'a> Clone for CertificateRevocationListDer<'a>

fn clone(self: &Self) -> CertificateRevocationListDer<'a>

impl<'a> Debug for CertificateRevocationListDer<'a>

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl<'a> Eq for CertificateRevocationListDer<'a>

impl<'a> Freeze for CertificateRevocationListDer<'a>

impl<'a> From for CertificateRevocationListDer<'a>

fn from(slice: &'a [u8]) -> Self

impl<'a> PartialEq for CertificateRevocationListDer<'a>

fn eq(self: &Self, other: &CertificateRevocationListDer<'a>) -> bool

impl<'a> RefUnwindSafe for CertificateRevocationListDer<'a>

impl<'a> Send for CertificateRevocationListDer<'a>

impl<'a> StructuralPartialEq for CertificateRevocationListDer<'a>

impl<'a> Sync for CertificateRevocationListDer<'a>

impl<'a> Unpin for CertificateRevocationListDer<'a>

impl<'a> UnwindSafe for CertificateRevocationListDer<'a>

impl<P, T> Receiver for CertificateRevocationListDer<'a>

impl<T> Any for CertificateRevocationListDer<'a>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for CertificateRevocationListDer<'a>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for CertificateRevocationListDer<'a>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for CertificateRevocationListDer<'a>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for CertificateRevocationListDer<'a>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> PemObject for CertificateRevocationListDer<'a>

fn from_pem(kind: SectionKind, der: Vec<u8>) -> Option<T>

impl<T> ToOwned for CertificateRevocationListDer<'a>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for CertificateRevocationListDer<'a>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for CertificateRevocationListDer<'a>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for CertificateRevocationListDer<'a>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>