pub enum Answered {
Status(u16),
NameNotUsable(String),
HandshakeFailed(String),
Unreachable(String),
}Expand description
What the request itself did, once the transport was somebody else’s problem. Carries the handshake, because a TLS failure surfaces as a request that never got a status.
Variants§
Status(u16)
The provider answered. The status is the whole finding: 200 is reachable, 401 is a key, 404 is a base URL with a path on it.
NameNotUsable(String)
The name is not one TLS can put in a handshake — an underscore, a trailing dot, a label that is not ASCII.
HandshakeFailed(String)
The handshake failed for any other reason, certificates included.
Unreachable(String)
The request never reached a handshake.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Answered
impl<'de> Deserialize<'de> for Answered
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Answered
impl StructuralPartialEq for Answered
Auto Trait Implementations§
impl Freeze for Answered
impl RefUnwindSafe for Answered
impl Send for Answered
impl Sync for Answered
impl Unpin for Answered
impl UnsafeUnpin for Answered
impl UnwindSafe for Answered
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