pub enum ServiceError {
Show 28 variants
Timeout {
reason: String,
},
InvalidUrl(ParseError),
SendError {
reason: String,
},
ResponseError {
reason: String,
},
JsonDecodeError {
reason: String,
},
ProtobufDecodeError(DecodeError),
BincodeError(Error),
Base64DecodeError(DecodeError),
RateLimitExceeded,
Unauthorized,
Locked(RegistrationLockFailure),
UnhandledResponseCode {
http_code: u16,
},
WsError {
reason: String,
},
WsClosing {
reason: String,
},
InvalidFrameError {
reason: String,
},
MacError,
SignalProtocolError(SignalProtocolError),
ProofRequiredError(ProofRequired),
MismatchedDevicesException(MismatchedDevices),
StaleDevices(StaleDevices),
CredentialsCacheError(CredentialsCacheError),
GroupsV2Error,
GroupsV2DecryptionError(GroupDecodingError),
ZkGroupDeserializationFailure(ZkGroupDeserializationFailure),
UnsupportedContent,
ParseServiceAddress(ParseServiceAddressError),
NotFoundError,
InvalidDeviceName,
}
Variants§
Timeout
InvalidUrl(ParseError)
SendError
ResponseError
JsonDecodeError
ProtobufDecodeError(DecodeError)
BincodeError(Error)
Base64DecodeError(DecodeError)
RateLimitExceeded
Locked(RegistrationLockFailure)
UnhandledResponseCode
WsError
WsClosing
InvalidFrameError
MacError
SignalProtocolError(SignalProtocolError)
ProofRequiredError(ProofRequired)
MismatchedDevicesException(MismatchedDevices)
StaleDevices(StaleDevices)
CredentialsCacheError(CredentialsCacheError)
GroupsV2Error
GroupsV2DecryptionError(GroupDecodingError)
ZkGroupDeserializationFailure(ZkGroupDeserializationFailure)
UnsupportedContent
ParseServiceAddress(ParseServiceAddressError)
NotFoundError
InvalidDeviceName
Trait Implementations§
source§impl Debug for ServiceError
impl Debug for ServiceError
source§impl Display for ServiceError
impl Display for ServiceError
source§impl Error for ServiceError
impl Error for ServiceError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<CredentialsCacheError> for ServiceError
impl From<CredentialsCacheError> for ServiceError
source§fn from(source: CredentialsCacheError) -> Self
fn from(source: CredentialsCacheError) -> Self
Converts to this type from the input type.
source§impl From<DecodeError> for ServiceError
impl From<DecodeError> for ServiceError
source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<DecodeError> for ServiceError
impl From<DecodeError> for ServiceError
source§impl From<GroupDecodingError> for ServiceError
impl From<GroupDecodingError> for ServiceError
source§fn from(source: GroupDecodingError) -> Self
fn from(source: GroupDecodingError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for ServiceError
impl From<ParseError> for ServiceError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
source§impl From<ParseServiceAddressError> for ServiceError
impl From<ParseServiceAddressError> for ServiceError
source§fn from(source: ParseServiceAddressError) -> Self
fn from(source: ParseServiceAddressError) -> Self
Converts to this type from the input type.
source§impl From<ServiceError> for AttachmentUploadError
impl From<ServiceError> for AttachmentUploadError
source§fn from(source: ServiceError) -> Self
fn from(source: ServiceError) -> Self
Converts to this type from the input type.
source§impl From<ServiceError> for MessageSenderError
impl From<ServiceError> for MessageSenderError
source§fn from(source: ServiceError) -> Self
fn from(source: ServiceError) -> Self
Converts to this type from the input type.
source§impl From<ServiceError> for ProfileManagerError
impl From<ServiceError> for ProfileManagerError
source§fn from(source: ServiceError) -> Self
fn from(source: ServiceError) -> Self
Converts to this type from the input type.
source§impl From<ServiceError> for ProvisioningError
impl From<ServiceError> for ProvisioningError
source§fn from(source: ServiceError) -> Self
fn from(source: ServiceError) -> Self
Converts to this type from the input type.
source§impl From<SignalProtocolError> for ServiceError
impl From<SignalProtocolError> for ServiceError
Auto Trait Implementations§
impl Freeze for ServiceError
impl !RefUnwindSafe for ServiceError
impl Send for ServiceError
impl Sync for ServiceError
impl Unpin for ServiceError
impl !UnwindSafe for ServiceError
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
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>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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