pub enum AppStorageError {
InvalidAppId(String),
Io {
path: Option<PathBuf>,
source: Error,
},
Json(Error),
InvalidDocument(String),
SymlinkCollision {
path: PathBuf,
reason: String,
},
SymlinkUnsupported(String),
}Expand description
Failure produced while resolving paths, validating documents, or touching storage.
§Examples
use ailloli_ui_app_storage::{AppId, AppStorageError};
assert!(matches!(AppId::new("Invalid"), Err(AppStorageError::InvalidAppId(_))));Variants§
InvalidAppId(String)
The application identifier violates AppId::new rules.
Io
A filesystem operation failed, optionally at the supplied path.
Fields
Json(Error)
JSON serialization or deserialization failed.
InvalidDocument(String)
A persisted document or atomic-write destination is structurally unsupported.
SymlinkCollision
A requested compatibility symlink would replace or disagree with an existing path.
Fields
SymlinkUnsupported(String)
Directory symlinks are unavailable on the current platform or provider.
Trait Implementations§
Source§impl Debug for AppStorageError
impl Debug for AppStorageError
Source§impl Display for AppStorageError
impl Display for AppStorageError
Source§impl Error for AppStorageError
impl Error for AppStorageError
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 AppStorageError
impl !RefUnwindSafe for AppStorageError
impl Send for AppStorageError
impl Sync for AppStorageError
impl Unpin for AppStorageError
impl !UnwindSafe for AppStorageError
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