#[non_exhaustive]pub enum DirectoryLoadState {
Unloaded,
Loading {
generation: u64,
},
Loaded {
revision: u64,
},
Stale,
Error(FileError),
}Expand description
Retained load state of a directory node.
§Examples
use ailloli_ui_fs::DirectoryLoadState;
assert!(matches!(DirectoryLoadState::Unloaded, DirectoryLoadState::Unloaded));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.
Unloaded
Children have not been loaded or were explicitly evicted.
Loading
A provider request is active for the store generation.
Fields
§
generation: u64FileTreeStore::generation captured when the request began.
Loaded
A provider result was reconciled successfully.
Stale
Retained children may be outdated and should be refreshed.
Error(FileError)
The last accepted provider result failed; existing children are retained.
Trait Implementations§
Source§impl Clone for DirectoryLoadState
impl Clone for DirectoryLoadState
Source§fn clone(&self) -> DirectoryLoadState
fn clone(&self) -> DirectoryLoadState
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 DirectoryLoadState
impl Debug for DirectoryLoadState
Source§impl PartialEq for DirectoryLoadState
impl PartialEq for DirectoryLoadState
impl Eq for DirectoryLoadState
impl StructuralPartialEq for DirectoryLoadState
Auto Trait Implementations§
impl Freeze for DirectoryLoadState
impl RefUnwindSafe for DirectoryLoadState
impl Send for DirectoryLoadState
impl Sync for DirectoryLoadState
impl Unpin for DirectoryLoadState
impl UnwindSafe for DirectoryLoadState
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