#[non_exhaustive]pub enum Error {
Show 21 variants
NotStarted,
AlreadyStarted,
InvalidConfiguration(String),
Core(Error),
Transport(Error),
Router(Error),
Reliability(Error),
Mls(MlsError),
MlsNotInitialized,
NoKeyPackage(String),
SessionNotReady(EstablishmentState),
EncryptFailed(String),
Service(ServiceError),
Serialization(String),
UserBlocked(String),
MediaTransferLimit(String),
GroupNotFound(String),
PermissionDenied(String),
InvalidState(String),
InvalidArgument(String),
Other(String),
}Expand description
Protocol errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NotStarted
Protocol not started.
AlreadyStarted
Protocol already started.
InvalidConfiguration(String)
Invalid configuration.
Core(Error)
Core error.
Transport(Error)
Transport error.
Router(Error)
Router error.
Reliability(Error)
Reliability error.
Mls(MlsError)
MLS error.
MlsNotInitialized
MLS not initialized.
NoKeyPackage(String)
No key package available for recipient.
SessionNotReady(EstablishmentState)
Session not ready; establishment in progress. Caller can retry or show “Establishing…”.
EncryptFailed(String)
Outbound message encryption failed.
Service(ServiceError)
Service error.
Serialization(String)
Serialization error.
UserBlocked(String)
Operation rejected because the target user is blocked.
MediaTransferLimit(String)
Too many concurrent media transfers to the same recipient. Encrypted transfers share the recipient’s session ratchet, whose out-of-order tolerance bounds how many chunks may be in flight at once.
GroupNotFound(String)
Group does not exist locally.
PermissionDenied(String)
Operation requires a group role or permission the caller does not hold.
InvalidState(String)
Operation rejected by the current group or protocol state (e.g. last-admin constraints, member limits, expired key packages).
InvalidArgument(String)
A caller-supplied argument failed validation.
Other(String)
Generic error.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Source§impl From<ServiceError> for Error
impl From<ServiceError> for Error
Source§fn from(source: ServiceError) -> Self
fn from(source: ServiceError) -> Self
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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
Source§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more