Struct openssl::x509::X509VerifyResult
source · [−]pub struct X509VerifyResult(_);
Expand description
The result of peer certificate verification.
Implementations
sourceimpl X509VerifyResult
impl X509VerifyResult
sourcepub unsafe fn from_raw(err: c_int) -> X509VerifyResult
pub unsafe fn from_raw(err: c_int) -> 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
.
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.
Trait Implementations
sourceimpl Clone for X509VerifyResult
impl Clone for X509VerifyResult
sourcefn clone(&self) -> X509VerifyResult
fn clone(&self) -> X509VerifyResult
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for X509VerifyResult
impl Debug for X509VerifyResult
sourceimpl Display for X509VerifyResult
impl Display for X509VerifyResult
sourceimpl Error for X509VerifyResult
impl Error for X509VerifyResult
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl PartialEq<X509VerifyResult> for X509VerifyResult
impl PartialEq<X509VerifyResult> for X509VerifyResult
sourcefn eq(&self, other: &X509VerifyResult) -> bool
fn eq(&self, other: &X509VerifyResult) -> bool
impl Copy for X509VerifyResult
impl Eq for X509VerifyResult
impl StructuralEq for X509VerifyResult
impl StructuralPartialEq for X509VerifyResult
Auto Trait Implementations
impl RefUnwindSafe for X509VerifyResult
impl Send for X509VerifyResult
impl Sync for X509VerifyResult
impl Unpin for X509VerifyResult
impl UnwindSafe for X509VerifyResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more