pub enum LocalFileExplorerLoadingMode {
LazyReload,
LazyCached,
ControlledDepth(usize),
FullLoad,
}Expand description
Local runtime directory-request strategy.
§Examples
use ailloli_ui_widgets::files::LocalFileExplorerLoadingMode;
assert_ne!(LocalFileExplorerLoadingMode::LazyReload, LocalFileExplorerLoadingMode::LazyCached);
assert_eq!(LocalFileExplorerLoadingMode::ControlledDepth(2), LocalFileExplorerLoadingMode::ControlledDepth(2));Variants§
LazyReload
Loads on demand and forces a fresh read each time a directory opens.
LazyCached
Loads on demand and reuses already loaded directory state.
ControlledDepth(usize)
Proactively loads directory nodes through the inclusive zero-based depth.
FullLoad
Proactively loads through FileTreeOptions::max_depth.
Trait Implementations§
Source§impl Clone for LocalFileExplorerLoadingMode
impl Clone for LocalFileExplorerLoadingMode
Source§fn clone(&self) -> LocalFileExplorerLoadingMode
fn clone(&self) -> LocalFileExplorerLoadingMode
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 LocalFileExplorerLoadingMode
impl Debug for LocalFileExplorerLoadingMode
Source§impl PartialEq for LocalFileExplorerLoadingMode
impl PartialEq for LocalFileExplorerLoadingMode
Source§fn eq(&self, other: &LocalFileExplorerLoadingMode) -> bool
fn eq(&self, other: &LocalFileExplorerLoadingMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LocalFileExplorerLoadingMode
impl Eq for LocalFileExplorerLoadingMode
impl StructuralPartialEq for LocalFileExplorerLoadingMode
Auto Trait Implementations§
impl Freeze for LocalFileExplorerLoadingMode
impl RefUnwindSafe for LocalFileExplorerLoadingMode
impl Send for LocalFileExplorerLoadingMode
impl Sync for LocalFileExplorerLoadingMode
impl Unpin for LocalFileExplorerLoadingMode
impl UnwindSafe for LocalFileExplorerLoadingMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.