Crate ailloli_ui_fs

Source
Expand description

Filesystem and VFS abstractions for Ailloli UI.

This crate defines stable, UI-agnostic file concepts. Concrete backends live in separate crates such as ailloli_ui_fs_local.

§Examples

use ailloli_ui_fs::{FileKind, FileMetadata, FileUri};
let uri = FileUri::parse("file:///tmp/example.txt")?;
let metadata = FileMetadata::new(FileKind::File);
assert_eq!((uri.scheme(), metadata.kind), ("file", FileKind::File));

Re-exports§

pub use auth::AuthKind;
pub use auth::AuthRequest;
pub use capabilities::FileCapabilities;
pub use entry::FileEntry;
pub use error::FileError;
pub use metadata::FileKind;
pub use metadata::FileMetadata;
pub use operations::FileOperation;
pub use operations::FileOperationKind;
pub use progress::FileProgress;
pub use provider::FileProvider;
pub use source::FileTreeSource;
pub use source::FileTreeSourceFactory;
pub use transfer::FileTransfer;
pub use tree::DirectoryLoadRequest;
pub use tree::DirectoryLoadState;
pub use tree::FileIdentity;
pub use tree::FileTreeDelta;
pub use tree::FileTreeNode;
pub use tree::FileTreeNodeId;
pub use tree::FileTreeStore;
pub use tree::FileTreeStoreDelta;
pub use tree::FileTreeStoreDiagnostics;
pub use tree::FileTreeStoreError;
pub use tree::FileTreeStoreLimits;
pub use tree::DEFAULT_FILE_TREE_COLLAPSED_TTL;
pub use tree::DEFAULT_FILE_TREE_MAX_NODES;
pub use tree::DEFAULT_FILE_TREE_MAX_PAYLOAD_BYTES;
pub use uri::FileUri;
pub use watch::WatchEvent;
pub use watch::WatchEventKind;

Modules§

auth
Authentication challenges emitted by interactive filesystem providers.
capabilities
Provider feature flags used to gate filesystem UI actions.
entry
Directory-entry values returned by providers and tree sources.
error
Serializable, provider-neutral filesystem failures.
metadata
Provider-neutral file kinds and metadata snapshots.
operations
Serializable descriptions of filesystem work and its coarse operation kind.
progress
Provider-neutral progress snapshots for filesystem operations.
provider
Synchronous provider contract for complete filesystem operations.
source
Worker-owned source contract used by the persistent file-tree coordinator.
transfer
Serializable source/destination descriptions for file transfers.
tree
Persistent, I/O-free filesystem tree state, reconciliation, and cache eviction.
uri
Normalized, serializable identifiers for local and remote filesystem entries.
watch
Normalized native filesystem watch events and correlation metadata.