Enum norad::error::StoreError
source · #[non_exhaustive]pub enum StoreError {
DirUnderFile,
EmptyPath,
NotPlainFileOrDir,
PathIsAbsolute,
NotPlainFile,
Subdir,
InvalidImage,
Io(Arc<Error>),
}
Expand description
An error representing a failure to insert content into a crate::datastore::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.
DirUnderFile
Tried to insert a path whose ancestor is in the store already, implying nesting a file under a file.
EmptyPath
The path was empty.
NotPlainFileOrDir
The path was neither plain file nor directory, but e.g. a symlink.
PathIsAbsolute
The path was absolute; only relative paths are allowed.
NotPlainFile
The path was not a plain file, but e.g. a directory or symlink.
Subdir
The path contained a subdirectory; images
is a flat directory.
InvalidImage
The image did not have a valid PNG header.
Io(Arc<Error>)
Encountered an IO error while trying to load data
Trait Implementations§
source§impl Clone for StoreError
impl Clone for StoreError
source§fn clone(&self) -> StoreError
fn clone(&self) -> StoreError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StoreError
impl Debug for StoreError
source§impl Display for StoreError
impl Display for StoreError
source§impl Error for StoreError
impl Error for StoreError
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()
Auto Trait Implementations§
impl Freeze for StoreError
impl !RefUnwindSafe for StoreError
impl Send for StoreError
impl Sync for StoreError
impl Unpin for StoreError
impl !UnwindSafe for StoreError
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