pub enum SilkroadSecurityError {
SecurityUninitialized,
AlreadyInitialized,
InitializationUnfinished,
InvalidBlockLength(usize),
KeyExchangeMismatch {
received: u64,
calculated: u64,
},
}Variants§
SecurityUninitialized
The handshake hasn’t been started or hasn’t completed, yet the operation required it.
AlreadyInitialized
The handshake has already completed. The security would need to be reset before continuing.
InitializationUnfinished
Finalizing the handshake requires the handshake to have exchanged public key data, which hasn’t happened yet.
InvalidBlockLength(usize)
The given encrypted data is not the correct block length, as required for decryption.
KeyExchangeMismatch
We calculated a different secret than the client, something went wrong in the handshake.
Trait Implementations§
Source§impl Debug for SilkroadSecurityError
impl Debug for SilkroadSecurityError
Source§impl Display for SilkroadSecurityError
impl Display for SilkroadSecurityError
Source§impl Error for SilkroadSecurityError
impl Error for SilkroadSecurityError
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()
Auto Trait Implementations§
impl Freeze for SilkroadSecurityError
impl RefUnwindSafe for SilkroadSecurityError
impl Send for SilkroadSecurityError
impl Sync for SilkroadSecurityError
impl Unpin for SilkroadSecurityError
impl UnwindSafe for SilkroadSecurityError
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