Enum sequoia_net::Error
source · pub enum Error {
Show 13 variants
PolicyViolation(Policy),
NotFound,
MismatchedKeyHandle(KeyHandle, Cert),
MalformedUri,
MalformedResponse,
ProtocolViolation,
HttpStatus(StatusCode),
UriError(ParseError),
HttpError(Error),
HyperError(Error),
TlsError(Error),
MalformedEmail(String),
EmailNotInUserids(String),
}
Expand description
Errors returned from the network routines.
Variants§
PolicyViolation(Policy)
The network policy was violated by the given action.
NotFound
A requested key was not found.
MismatchedKeyHandle(KeyHandle, Cert)
Mismatched key handle
MalformedUri
A given keyserver URI was malformed.
MalformedResponse
The server provided malformed data.
ProtocolViolation
A communication partner violated the protocol.
HttpStatus(StatusCode)
Encountered an unexpected low-level http status.
UriError(ParseError)
A hyper::error::UriError
occurred.
HttpError(Error)
A http::Error
occurred.
HyperError(Error)
A hyper::Error
occurred.
TlsError(Error)
A native_tls::Error
occurred.
MalformedEmail(String)
wkd errors: An email address is malformed
EmailNotInUserids(String)
An email address was not found in Cert userids.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ParseError> for Error
impl From<ParseError> for Error
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.