pub struct FileExplorerIoResponse {
pub node_id: FileTreeNodeId,
pub uri: FileUri,
pub result: Result<Vec<FileEntry>, FileError>,
pub truncated: bool,
}Expand description
Completed local directory request returned by the worker.
truncated is meaningful only for a successful result; provider errors set
it to false. Responses retain the request’s node and URI for stale-result
detection by the owner.
§Examples
use ailloli_ui_fs::{FileEntry, FileError, FileUri};
use ailloli_ui_widgets::files::{FileExplorerIoResponse, FileTreeNodeId};
let response = FileExplorerIoResponse {
node_id: FileTreeNodeId(3),
uri: FileUri::parse("file:///tmp")?,
result: Ok::<Vec<FileEntry>, FileError>(Vec::new()),
truncated: false,
};
assert_eq!(response.node_id, FileTreeNodeId(3));Fields§
§node_id: FileTreeNodeIdStore-local node copied from the request.
uri: FileUriDirectory URI copied from the request.
result: Result<Vec<FileEntry>, FileError>Normalized entries or the provider failure.
truncated: boolWhether the configured per-directory cap removed entries.
Trait Implementations§
Source§impl Clone for FileExplorerIoResponse
impl Clone for FileExplorerIoResponse
Source§fn clone(&self) -> FileExplorerIoResponse
fn clone(&self) -> FileExplorerIoResponse
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 FileExplorerIoResponse
impl RefUnwindSafe for FileExplorerIoResponse
impl Send for FileExplorerIoResponse
impl Sync for FileExplorerIoResponse
impl Unpin for FileExplorerIoResponse
impl UnwindSafe for FileExplorerIoResponse
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.