pub struct InvalidNameContext {
pub expected: ServerName<'static>,
pub presented: Vec<String>,
}
Expand description
Additional context for the CertNotValidForName
error variant.
The contents of this type depend on whether the alloc
feature is enabled.
Fields§
§expected: ServerName<'static>
Available on crate feature
alloc
only.Expected server name.
presented: Vec<String>
Available on crate feature
alloc
only.The names presented in the end entity certificate.
These are the subject names as present in the leaf certificate and may contain DNS names with or without a wildcard label as well as IP address names.
Trait Implementations§
Source§impl Clone for InvalidNameContext
impl Clone for InvalidNameContext
Source§fn clone(&self) -> InvalidNameContext
fn clone(&self) -> InvalidNameContext
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InvalidNameContext
impl Debug for InvalidNameContext
Source§impl PartialEq for InvalidNameContext
impl PartialEq for InvalidNameContext
impl Eq for InvalidNameContext
impl StructuralPartialEq for InvalidNameContext
Auto Trait Implementations§
impl Freeze for InvalidNameContext
impl RefUnwindSafe for InvalidNameContext
impl Send for InvalidNameContext
impl Sync for InvalidNameContext
impl Unpin for InvalidNameContext
impl UnwindSafe for InvalidNameContext
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