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<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Fruit for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read moreSource§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 moreimpl<T> JsonCastable<CanonicalJsonValue> for T
impl<T> JsonCastable<Value> for T
impl<T> MaybeSendSync for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> SendOutsideWasm for Twhere
T: Send,
impl<T> SyncOutsideWasm for Twhere
T: Sync,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.