Struct CertificateRevocationListDer

pub struct CertificateRevocationListDer<'a>(/* private field */);

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);
# }

Trait Implementations

impl AsRef<[u8]> for CertificateRevocationListDer<'_>

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

impl Deref for CertificateRevocationListDer<'_>

type Target = [u8];
fn deref(&self) -> &Self::Target

impl From<Vec<u8>> for CertificateRevocationListDer<'_>

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

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

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

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

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

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

impl<'a> From<&'a [u8]> for CertificateRevocationListDer<'a>

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

impl<'a> Hash for CertificateRevocationListDer<'a>

fn hash<__H: Hasher>(&self, state: &mut __H)

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

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

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

Auto Trait Implementations

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

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

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

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

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

impl<'a> UnsafeUnpin for CertificateRevocationListDer<'a>

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

Blanket Implementations

impl<P, T> Receiver for CertificateRevocationListDer<'a> where P: Deref<Target = T> + ?Sized, T: ?Sized,

type Target = T;

impl<T> Any for CertificateRevocationListDer<'a> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for CertificateRevocationListDer<'a> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for CertificateRevocationListDer<'a> where T: ?Sized,

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

impl<T> CloneToUninit for CertificateRevocationListDer<'a> where T: Clone,

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

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

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> PemObject for CertificateRevocationListDer<'a> where T: PemObjectFilter + From<Vec<u8>>,

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

impl<T> ToOwned for CertificateRevocationListDer<'a> where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for CertificateRevocationListDer<'a> where U: From<T>,

fn into(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<U> for CertificateRevocationListDer<'a> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for CertificateRevocationListDer<'a> where U: TryFrom<T>,

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