pub enum FileExplorerIoRequest {
LoadDirectory {
node_id: FileTreeNodeId,
uri: FileUri,
selected: Option<FileUri>,
options: FileTreeOptions,
},
Shutdown,
}Expand description
Command sent to the local filesystem worker.
Requests are processed serially in send order by one background thread.
§Examples
use ailloli_ui_widgets::files::FileExplorerIoRequest;
assert!(matches!(FileExplorerIoRequest::Shutdown, FileExplorerIoRequest::Shutdown));Variants§
LoadDirectory
Reads and normalizes one directory.
Fields
§
node_id: FileTreeNodeIdStore-local node to correlate with the response.
§
uri: FileUriDirectory URI passed to the local provider.
§
options: FileTreeOptionsFiltering, sorting, and truncation policy snapshot.
Shutdown
Stops the worker after all earlier queued requests.
Trait Implementations§
Source§impl Clone for FileExplorerIoRequest
impl Clone for FileExplorerIoRequest
Source§fn clone(&self) -> FileExplorerIoRequest
fn clone(&self) -> FileExplorerIoRequest
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 moreAuto Trait Implementations§
impl Freeze for FileExplorerIoRequest
impl RefUnwindSafe for FileExplorerIoRequest
impl Send for FileExplorerIoRequest
impl Sync for FileExplorerIoRequest
impl Unpin for FileExplorerIoRequest
impl UnwindSafe for FileExplorerIoRequest
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<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.