pub enum SecioError {
IoError(IoError),
Protobuf(ProtobufError),
HandshakeParsingFailure,
NoSupportIntersection,
NonceGenerationFailed,
EphemeralKeyGenerationFailed,
SigningFailure,
SignatureVerificationFailed,
SecretGenerationFailed,
NonceVerificationFailed,
CipherError(LoopError),
FrameTooShort,
HmacNotMatching,
InvalidProposition(&'static str),
// some variants omitted
}
Error at the SECIO layer communication.
HandshakeParsingFailure
Failed to parse one of the handshake protobuf messages.
There is no protocol supported by both the local and remote hosts.
Failed to generate nonce.
Failed to generate ephemeral key.
Failed to sign a message with our local private key.
The signature of the exchange packet doesn't verify the remote public key.
Failed to generate the secret shared key from the ephemeral key.
The final check of the handshake failed.
The received frame was of invalid length.
The hashes of the message didn't match.
We received an invalid proposition from remote.
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Deprecated since 1.33.0
: replaced by Error::source, which can support downcasting
The lower-level cause of this error, if any. Read more
The lower-level source of this error, if any. Read more
Converts the given value to a String
. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static