Skip to main content

PeerLeaf

Struct PeerLeaf 

Source
pub struct PeerLeaf<'a> { /* private fields */ }
Expand description

The end-entity certificate after crypto-profile’s own checks have passed.

Implementations§

Source§

impl<'a> PeerLeaf<'a>

Source

pub fn der(&self) -> &CertificateDer<'a>

The certificate as received.

Source

pub fn uri_names(&self) -> Result<Vec<&'a str>, Error>

The subjectAltName URIs, in certificate order, as rustls-webpki parses them.

Refuses with CertificateError::BadEncoding when the subjectAltName carries an entry rustls-webpki cannot decode (rustls-webpki stops reading there), when the crate’s count of URI entries differs from rustls-webpki’s list (rustls-webpki drops a URI that is not UTF-8), or when the extension cannot be read.

Auto Trait Implementations§

§

impl<'a> Forget for PeerLeaf<'a>

§

impl<'a> Freeze for PeerLeaf<'a>

§

impl<'a> Move for PeerLeaf<'a>

§

impl<'a> RefUnwindSafe for PeerLeaf<'a>

§

impl<'a> Send for PeerLeaf<'a>

§

impl<'a> Sync for PeerLeaf<'a>

§

impl<'a> Unpin for PeerLeaf<'a>

§

impl<'a> UnsafeUnpin for PeerLeaf<'a>

§

impl<'a> UnwindSafe for PeerLeaf<'a>

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.