#[non_exhaustive]pub enum WireError {
Read {
path: String,
detail: String,
},
StoreNotFound {
base: String,
relative: String,
},
EncryptedPayloadUnrecoverable,
UndecodedValue(String),
}Expand description
An error interpreting a Wire desktop IndexedDB store.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Read
The underlying IndexedDB/LevelDB store could not be read.
Fields
StoreNotFound
A Wire profile base directory did not contain the expected IndexedDB store.
Fields
EncryptedPayloadUnrecoverable
The caller asked for the plaintext of a client-side-encrypted payload.
Wire’s message key is not recoverable from this artifact, so the reader refuses rather than fabricate plaintext. Surface the record’s cleartext metadata (conversation, sender, time) instead.
UndecodedValue(String)
The record value could not be decoded from its Blink/V8 structured-clone blob upstream; its raw bytes were retained but no plaintext exists.
Trait Implementations§
Source§impl Error for WireError
impl Error for WireError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for WireError
impl RefUnwindSafe for WireError
impl Send for WireError
impl Sync for WireError
impl Unpin for WireError
impl UnsafeUnpin for WireError
impl UnwindSafe for WireError
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