#[non_exhaustive]pub struct CertificateResult {
pub certs: Vec<CertificateDer<'static>>,
pub errors: Vec<Error>,
}
Expand description
Results from trying to load certificates from the platform’s native store.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.certs: Vec<CertificateDer<'static>>
Any certificates that were successfully loaded.
errors: Vec<Error>
Any errors encountered while loading certificates.
Implementations§
Source§impl CertificateResult
impl CertificateResult
Sourcepub fn expect(self, msg: &str) -> Vec<CertificateDer<'static>>
pub fn expect(self, msg: &str) -> Vec<CertificateDer<'static>>
Return the found certificates if no error occurred, otherwise panic.
Sourcepub fn unwrap(self) -> Vec<CertificateDer<'static>>
pub fn unwrap(self) -> Vec<CertificateDer<'static>>
Return the found certificates if no error occurred, otherwise panic.
Trait Implementations§
Source§impl Debug for CertificateResult
impl Debug for CertificateResult
Source§impl Default for CertificateResult
impl Default for CertificateResult
Source§fn default() -> CertificateResult
fn default() -> CertificateResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CertificateResult
impl !RefUnwindSafe for CertificateResult
impl Send for CertificateResult
impl Sync for CertificateResult
impl Unpin for CertificateResult
impl !UnwindSafe for CertificateResult
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