#[non_exhaustive]pub enum FileTreeStoreError {
MissingNode(FileTreeNodeId),
NotDirectory(FileTreeNodeId),
AlreadyLoading(FileTreeNodeId),
StaleResponse {
request_id: u64,
},
IdentifierExhausted,
InvalidReservedNodeId(FileTreeNodeId),
RevisionExhausted,
MissingDestinationParent(FileUri),
}Expand description
Structural/correlation failure returned by FileTreeStore mutations.
§Examples
use ailloli_ui_fs::FileTreeStoreError;
assert!(matches!(FileTreeStoreError::IdentifierExhausted, FileTreeStoreError::IdentifierExhausted));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.
MissingNode(FileTreeNodeId)
A node ID is absent from the live store.
NotDirectory(FileTreeNodeId)
A directory-only operation targeted a non-directory-like node.
AlreadyLoading(FileTreeNodeId)
A second load was requested while one remains active for the node.
StaleResponse
A provider result no longer matches the active request/generation.
IdentifierExhausted
Monotone node or request IDs reached u64::MAX.
InvalidReservedNodeId(FileTreeNodeId)
A reserved-ID commit/discard referenced an absent or already consumed reservation.
RevisionExhausted
The store revision or generation reached u64::MAX.
MissingDestinationParent(FileUri)
The destination URI’s parent is not retained in the store.
Trait Implementations§
Source§impl Clone for FileTreeStoreError
impl Clone for FileTreeStoreError
Source§fn clone(&self) -> FileTreeStoreError
fn clone(&self) -> FileTreeStoreError
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 FileTreeStoreError
impl Debug for FileTreeStoreError
Source§impl Display for FileTreeStoreError
impl Display for FileTreeStoreError
Source§impl Error for FileTreeStoreError
impl Error for FileTreeStoreError
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()
Source§impl PartialEq for FileTreeStoreError
impl PartialEq for FileTreeStoreError
impl Eq for FileTreeStoreError
impl StructuralPartialEq for FileTreeStoreError
Auto Trait Implementations§
impl Freeze for FileTreeStoreError
impl RefUnwindSafe for FileTreeStoreError
impl Send for FileTreeStoreError
impl Sync for FileTreeStoreError
impl Unpin for FileTreeStoreError
impl UnwindSafe for FileTreeStoreError
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