pub enum CertificateCheckStatus {
CertificateOk,
CertificatePassthrough,
}Expand description
The return value for the RemoteCallbacks::certificate_check callback.
Variants§
CertificateOk
Indicates that the certificate should be accepted.
CertificatePassthrough
Indicates that the certificate callback is neither accepting nor rejecting the certificate. The result of the certificate checks built-in to libgit2 will be used instead.
Auto Trait Implementations§
impl Freeze for CertificateCheckStatus
impl RefUnwindSafe for CertificateCheckStatus
impl Send for CertificateCheckStatus
impl Sync for CertificateCheckStatus
impl Unpin for CertificateCheckStatus
impl UnwindSafe for CertificateCheckStatus
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more