mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-07 16:57:39 +03:00
42 lines
1.1 KiB
Rust
42 lines
1.1 KiB
Rust
use matrix_sdk_crypto::{
|
|
store::CryptoStoreError as InnerStoreError, KeyExportError, MegolmError, OlmError,
|
|
};
|
|
use ruma::identifiers::Error as RumaIdentifierError;
|
|
|
|
#[derive(Debug, thiserror::Error)]
|
|
pub enum MachineCreationError {
|
|
#[error(transparent)]
|
|
Identifier(#[from] RumaIdentifierError),
|
|
#[error(transparent)]
|
|
CryptoStore(#[from] InnerStoreError),
|
|
}
|
|
|
|
#[derive(Debug, thiserror::Error)]
|
|
pub enum KeyImportError {
|
|
#[error(transparent)]
|
|
Export(#[from] KeyExportError),
|
|
#[error(transparent)]
|
|
CryptoStore(#[from] InnerStoreError),
|
|
}
|
|
|
|
#[derive(Debug, thiserror::Error)]
|
|
pub enum CryptoStoreError {
|
|
#[error(transparent)]
|
|
CryptoStore(#[from] InnerStoreError),
|
|
#[error(transparent)]
|
|
OlmError(#[from] OlmError),
|
|
#[error(transparent)]
|
|
Serialization(#[from] serde_json::Error),
|
|
#[error(transparent)]
|
|
Identifier(#[from] RumaIdentifierError),
|
|
}
|
|
|
|
#[derive(Debug, thiserror::Error)]
|
|
pub enum DecryptionError {
|
|
#[error(transparent)]
|
|
Serialization(#[from] serde_json::Error),
|
|
#[error(transparent)]
|
|
Identifier(#[from] RumaIdentifierError),
|
|
#[error(transparent)]
|
|
Megolm(#[from] MegolmError),
|
|
}
|