pub enum ChildState {
Unloaded,
Loading,
Loaded(Vec<NodeId>),
Error(FsError),
}Expand description
How much of a directory’s contents we currently hold.
Variants§
Unloaded
Never expanded. Costs nothing — this is what makes a monorepo root openable.
Loading
A read is in flight on the worker thread.
Loaded(Vec<NodeId>)
Error(FsError)
The read failed; rendered inline on the node rather than aborting the tree.
Trait Implementations§
Source§impl Clone for ChildState
impl Clone for ChildState
Source§fn clone(&self) -> ChildState
fn clone(&self) -> ChildState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChildState
impl Debug for ChildState
impl Eq for ChildState
Source§impl PartialEq for ChildState
impl PartialEq for ChildState
impl StructuralPartialEq for ChildState
Auto Trait Implementations§
impl Freeze for ChildState
impl RefUnwindSafe for ChildState
impl Send for ChildState
impl Sync for ChildState
impl Unpin for ChildState
impl UnsafeUnpin for ChildState
impl UnwindSafe for ChildState
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