pub enum TrustProblem {
OriginChanged {
subject: TrustSubject,
old: String,
new: String,
},
AccountChanged {
subject: TrustSubject,
old: Box<Account>,
new: Box<Account>,
},
UntrustedCertificate {
subject: TrustSubject,
new: Box<CertInfo>,
},
CertificateChanged {
subject: TrustSubject,
old: Box<CertInfo>,
new: Box<CertInfo>,
},
PlainHttp {
subject: TrustSubject,
origin: String,
},
}Expand description
Why a client was not built, or a request not sent. (The larger payloads
are boxed: this travels inside Error, which is returned everywhere.)
Variants§
OriginChanged
The address now differs from the recorded one.
AccountChanged
The token now belongs to another account.
UntrustedCertificate
First use of a certificate that does not chain to a known root.
CertificateChanged
The certificate key is not the recorded one.
PlainHttp
A non-loopback http:// address that was not allowed.
Implementations§
Source§impl TrustProblem
impl TrustProblem
pub fn subject(&self) -> &TrustSubject
Sourcepub fn with_subject(self, new_subject: TrustSubject) -> Self
pub fn with_subject(self, new_subject: TrustSubject) -> Self
The same problem about subject.
Trait Implementations§
Source§impl Clone for TrustProblem
impl Clone for TrustProblem
Source§impl Debug for TrustProblem
impl Debug for TrustProblem
Source§impl Display for TrustProblem
impl Display for TrustProblem
impl Eq for TrustProblem
Source§impl PartialEq for TrustProblem
impl PartialEq for TrustProblem
impl StructuralPartialEq for TrustProblem
Auto Trait Implementations§
impl Forget for TrustProblem
impl Freeze for TrustProblem
impl Move for TrustProblem
impl RefUnwindSafe for TrustProblem
impl Send for TrustProblem
impl Sync for TrustProblem
impl Unpin for TrustProblem
impl UnsafeUnpin for TrustProblem
impl UnwindSafe for TrustProblem
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.