#[non_exhaustive]pub enum StorageError {
Sqlite(Error),
Open {
path: PathBuf,
source: Error,
},
Migration {
version: i64,
source: Error,
},
Resolve(ResolveError),
NotFound(String),
MissingBlob(String),
StillRecording(String),
WriterClosed,
WriterPanic,
}Expand description
Storage-layer error.
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.
Sqlite(Error)
SQLite returned an error.
Open
The database file could not be opened or created.
Migration
A migration could not be applied.
Resolve(ResolveError)
A session id did not resolve to exactly one session.
NotFound(String)
A session id was not found.
MissingBlob(String)
A blob referenced by an event does not exist on disk.
StillRecording(String)
redact_session was asked to rewrite a session that is still being
recorded (a live writer could re-insert plaintext mid-rewrite).
WriterClosed
The single-writer task is no longer reachable (closed or panicked).
WriterPanic
The single-writer task panicked while handling a request.
Trait Implementations§
Source§impl Debug for StorageError
impl Debug for StorageError
Source§impl Display for StorageError
impl Display for StorageError
Source§impl Error for StorageError
impl Error for StorageError
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<Error> for StorageError
impl From<Error> for StorageError
Source§impl From<ResolveError> for StorageError
impl From<ResolveError> for StorageError
Source§fn from(source: ResolveError) -> Self
fn from(source: ResolveError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for Error
impl From<StorageError> for Error
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for StorageError
impl !UnwindSafe for StorageError
impl Freeze for StorageError
impl Send for StorageError
impl Sync for StorageError
impl Unpin for StorageError
impl UnsafeUnpin for StorageError
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