pub enum FileOperationKind {
ReadDir,
ReadFile,
WriteFile,
Metadata,
CreateDir,
Rename,
Copy,
Move,
Remove,
RemoveRecursive,
}Expand description
Coarse operation category used for progress, policy, and diagnostics.
§Examples
use ailloli_ui_fs::FileOperationKind;
assert_ne!(FileOperationKind::Copy, FileOperationKind::Move);Variants§
ReadDir
List a directory.
ReadFile
Read complete file bytes.
WriteFile
Write complete file bytes.
Metadata
Retrieve entry metadata.
CreateDir
Create a directory.
Rename
Rename an entry, normally within one provider/filesystem.
Copy
Copy an entry while retaining the source.
Move
Move an entry so the source no longer exists.
Remove
Remove one non-directory or empty directory entry.
RemoveRecursive
Remove an entry and all descendants.
Trait Implementations§
Source§impl Clone for FileOperationKind
impl Clone for FileOperationKind
Source§fn clone(&self) -> FileOperationKind
fn clone(&self) -> FileOperationKind
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 FileOperationKind
impl Debug for FileOperationKind
Source§impl<'de> Deserialize<'de> for FileOperationKind
impl<'de> Deserialize<'de> for FileOperationKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FileOperationKind
impl PartialEq for FileOperationKind
Source§impl Serialize for FileOperationKind
impl Serialize for FileOperationKind
impl Eq for FileOperationKind
impl StructuralPartialEq for FileOperationKind
Auto Trait Implementations§
impl Freeze for FileOperationKind
impl RefUnwindSafe for FileOperationKind
impl Send for FileOperationKind
impl Sync for FileOperationKind
impl Unpin for FileOperationKind
impl UnwindSafe for FileOperationKind
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