pub enum SecioError {
Show 14 variants
IoError(Error),
Openssl(ErrorStack),
CryptoError,
NotSupportKeyProvider,
EphemeralKeyGenerationFailed,
SecretGenerationFailed,
NoSupportIntersection,
NonceVerificationFailed,
FrameTooShort,
ConnectSelf,
HandshakeParsingFailure,
SignatureVerificationFailed,
InvalidMessage,
InvalidProposition(&'static str),
}Expand description
Error at the SECIO layer communication.
Variants§
IoError(Error)
I/O error.
Openssl(ErrorStack)
Openssl stack error
CryptoError
Crypto error
NotSupportKeyProvider
Sign operation not supported
EphemeralKeyGenerationFailed
Failed to generate ephemeral key.
SecretGenerationFailed
Failed to generate the secret shared key from the ephemeral key.
NoSupportIntersection
There is no protocol supported by both the local and remote hosts.
NonceVerificationFailed
The final check of the handshake failed.
FrameTooShort
The received frame was of invalid length.
ConnectSelf
Connect yourself
HandshakeParsingFailure
Failed to parse one of the handshake bincode messages.
SignatureVerificationFailed
The signature of the exchange packet doesn’t verify the remote public key.
InvalidMessage
Invalid message message found during handshake
InvalidProposition(&'static str)
We received an invalid proposition from remote.
Trait Implementations§
Source§impl Debug for SecioError
impl Debug for SecioError
Source§impl Display for SecioError
impl Display for SecioError
Source§impl Error for SecioError
impl Error for SecioError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<Error> for SecioError
impl From<Error> for SecioError
Source§fn from(err: Error) -> SecioError
fn from(err: Error) -> SecioError
Converts to this type from the input type.
Source§impl From<ErrorStack> for SecioError
Available on Unix only.
impl From<ErrorStack> for SecioError
Available on Unix only.
Source§fn from(err: ErrorStack) -> SecioError
fn from(err: ErrorStack) -> SecioError
Converts to this type from the input type.
Source§impl From<SecioError> for Error
impl From<SecioError> for Error
Source§fn from(err: SecioError) -> Error
fn from(err: SecioError) -> Error
Converts to this type from the input type.
Source§impl From<Unspecified> for SecioError
Available on non-target_family=wasm only.
impl From<Unspecified> for SecioError
Available on non-
target_family=wasm only.Source§fn from(_err: Unspecified) -> SecioError
fn from(_err: Unspecified) -> SecioError
Converts to this type from the input type.
Source§impl PartialEq for SecioError
impl PartialEq for SecioError
Auto Trait Implementations§
impl Freeze for SecioError
impl !RefUnwindSafe for SecioError
impl Send for SecioError
impl Sync for SecioError
impl Unpin for SecioError
impl !UnwindSafe for SecioError
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