pub enum DehydratedDeviceError {
Http(HttpError),
Crypto(DehydrationError),
Olm(OlmError),
DrainTruncated {
to_device_events: usize,
},
Store(CryptoStoreError),
SecretStorage(SecretStorageError),
PickleKeyDecode(Base64DecodeError),
NotLoggedIn,
}Available on crate feature
e2e-encryption only.Expand description
Errors that can occur while managing dehydrated devices.
Variants§
Http(HttpError)
The HTTP request to the homeserver failed.
Crypto(DehydrationError)
The cryptographic operation on the dehydrated device failed.
Olm(OlmError)
Importing room keys from a rehydrated device’s to-device events failed.
DrainTruncated
The to-device drain during rehydration stopped before the server’s queue was exhausted; the dehydrated device was left in place so a retry can resume the drain.
Store(CryptoStoreError)
The crypto store could not be accessed.
SecretStorage(SecretStorageError)
Reading or writing a secret to Secret Storage failed.
PickleKeyDecode(Base64DecodeError)
The pickle key stored in Secret Storage was not valid base64.
NotLoggedIn
The client is not logged in; the Olm machine is not available.
Trait Implementations§
Source§impl Debug for DehydratedDeviceError
impl Debug for DehydratedDeviceError
Source§impl Display for DehydratedDeviceError
impl Display for DehydratedDeviceError
Source§impl Error for DehydratedDeviceError
impl Error for DehydratedDeviceError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<CryptoStoreError> for DehydratedDeviceError
impl From<CryptoStoreError> for DehydratedDeviceError
Source§fn from(source: CryptoStoreError) -> Self
fn from(source: CryptoStoreError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for DehydratedDeviceError
impl From<DecodeError> for DehydratedDeviceError
Source§fn from(source: Base64DecodeError) -> Self
fn from(source: Base64DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<DehydrationError> for DehydratedDeviceError
impl From<DehydrationError> for DehydratedDeviceError
Source§fn from(source: DehydrationError) -> Self
fn from(source: DehydrationError) -> Self
Converts to this type from the input type.
Source§impl From<HttpError> for DehydratedDeviceError
impl From<HttpError> for DehydratedDeviceError
Source§impl From<OlmError> for DehydratedDeviceError
impl From<OlmError> for DehydratedDeviceError
Source§impl From<SecretStorageError> for DehydratedDeviceError
impl From<SecretStorageError> for DehydratedDeviceError
Source§fn from(source: SecretStorageError) -> Self
fn from(source: SecretStorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DehydratedDeviceError
impl !UnwindSafe for DehydratedDeviceError
impl Freeze for DehydratedDeviceError
impl Send for DehydratedDeviceError
impl Sync for DehydratedDeviceError
impl Unpin for DehydratedDeviceError
impl UnsafeUnpin for DehydratedDeviceError
Blanket Implementations§
impl<T> Any for Twhere
T: Any,
impl<T> AsyncTraitDeps for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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> ⓘ
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