pub enum ShieldError {
Show 18 variants
CiphertextTooShort {
expected: usize,
actual: usize,
},
AuthenticationFailed,
KeyDerivationFailed(String),
InvalidKeyLength {
expected: usize,
actual: usize,
},
RandomFailed,
StreamError(String),
RatchetError(String),
InvalidFormat,
InvalidShareCount,
VersionExists(u32),
InvalidVersion,
UnknownVersion(u32),
LamportKeyUsed,
UserExists(String),
MemberNotFound,
ChannelError(String),
ConnectionClosed,
FingerprintUnavailable,
}Expand description
Errors that can occur during Shield operations.
Variants§
CiphertextTooShort
Ciphertext is too short to contain required components.
AuthenticationFailed
MAC verification failed - data may be tampered or wrong key.
KeyDerivationFailed(String)
Key derivation failed.
InvalidKeyLength
Invalid key length.
RandomFailed
Random number generation failed.
StreamError(String)
Stream cipher error.
RatchetError(String)
Ratchet session error.
InvalidFormat
Invalid format.
Invalid share count.
VersionExists(u32)
Key version already exists.
InvalidVersion
Invalid key version.
UnknownVersion(u32)
Unknown key version.
LamportKeyUsed
Lamport key already used.
UserExists(String)
User already exists.
MemberNotFound
Member not found.
ChannelError(String)
Channel/transport error.
ConnectionClosed
Connection closed.
Hardware fingerprint unavailable.
Trait Implementations§
Source§impl Debug for ShieldError
impl Debug for ShieldError
Source§impl Display for ShieldError
impl Display for ShieldError
Source§impl Error for ShieldError
impl Error for ShieldError
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 ShieldError
impl RefUnwindSafe for ShieldError
impl Send for ShieldError
impl Sync for ShieldError
impl Unpin for ShieldError
impl UnsafeUnpin for ShieldError
impl UnwindSafe for ShieldError
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