pub enum E2eError {
Show 16 variants
DhValidationFailed,
SharedSecretInvalid,
KeyFingerprintMismatch,
DecryptionFailed,
EncryptionFailed,
ChatNotFound(i32),
ChatAlreadyExists(i32),
InvalidState(String),
MessageTooLarge,
RekeyInProgress,
TlSerializationFailed,
TlDeserializationFailed,
SecurityError(String),
Transport(String),
UploadFailed(String),
FileTooLarge,
}Expand description
Errors returned by ferogram-e2e.
Variants§
DhValidationFailed
A DH value (g_a, g_b) failed the range checks against the prime.
The shared secret computed by the DH exchange is not usable.
KeyFingerprintMismatch
The key fingerprint on a message or exchange does not match our key.
DecryptionFailed
A message or file could not be decrypted or failed an integrity check.
EncryptionFailed
A message or file could not be encrypted.
ChatNotFound(i32)
No secret chat with this id is known.
ChatAlreadyExists(i32)
A secret chat with this id already exists.
InvalidState(String)
The chat is not in a state that allows this operation.
MessageTooLarge
A text message or attachment exceeds the size limit (text: 512 KiB).
RekeyInProgress
A key re-exchange is already in progress for this chat.
TlSerializationFailed
Serializing an inner TL object failed.
TlDeserializationFailed
Parsing an inner TL object failed.
SecurityError(String)
A re-key security check failed (fingerprint mismatch on accept or commit).
Transport(String)
The underlying client failed to complete an RPC.
UploadFailed(String)
Uploading an encrypted file failed.
FileTooLarge
The file exceeds the 2 GB limit.
Trait Implementations§
Source§impl Error for E2eError
impl Error for E2eError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()