pub struct X509VerifyResult(/* private fields */);
Expand description
The result of peer certificate verification.
Implementations§
Source§impl X509VerifyResult
impl X509VerifyResult
Sourcepub const OK: X509VerifyResult = _
pub const OK: X509VerifyResult = _
Successful peer certificate verification.
Sourcepub const APPLICATION_VERIFICATION: X509VerifyResult = _
pub const APPLICATION_VERIFICATION: X509VerifyResult = _
Application verification failure.
Sourcepub unsafe fn from_raw(err: i32) -> X509VerifyResult
pub unsafe fn from_raw(err: i32) -> X509VerifyResult
Creates an X509VerifyResult
from a raw error number.
§Safety
Some methods on X509VerifyResult
are not thread safe if the error
number is invalid.
Sourcepub fn error_string(&self) -> &'static str
pub fn error_string(&self) -> &'static str
Return a human readable error string from the verification error.
This corresponds to X509_verify_cert_error_string
.
Trait Implementations§
Source§impl Clone for X509VerifyResult
impl Clone for X509VerifyResult
Source§fn clone(&self) -> X509VerifyResult
fn clone(&self) -> X509VerifyResult
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 X509VerifyResult
impl Debug for X509VerifyResult
Source§impl Display for X509VerifyResult
impl Display for X509VerifyResult
Source§impl Error for X509VerifyResult
impl Error for X509VerifyResult
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for X509VerifyResult
impl PartialEq for X509VerifyResult
impl Copy for X509VerifyResult
impl Eq for X509VerifyResult
impl StructuralPartialEq for X509VerifyResult
Auto Trait Implementations§
impl Freeze for X509VerifyResult
impl RefUnwindSafe for X509VerifyResult
impl Send for X509VerifyResult
impl Sync for X509VerifyResult
impl Unpin for X509VerifyResult
impl UnwindSafe for X509VerifyResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)