mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-05-12 13:09:29 +00:00
12 lines
330 B
Rust
12 lines
330 B
Rust
|
|
use libchat::ChatError;
|
||
|
|
|
||
|
|
#[derive(Debug, thiserror::Error)]
|
||
|
|
pub enum ClientError<D: std::fmt::Debug> {
|
||
|
|
#[error(transparent)]
|
||
|
|
Chat(#[from] ChatError),
|
||
|
|
/// Crypto state advanced but at least one envelope failed delivery.
|
||
|
|
/// Caller decides whether to retry.
|
||
|
|
#[error("delivery failed: {0:?}")]
|
||
|
|
Delivery(D),
|
||
|
|
}
|