#[non_exhaustive]#[repr(u8)]pub enum ProviderOperation {
Stat = 0,
List = 1,
OpenReader = 2,
OpenWriter = 3,
CreateDirectory = 4,
DeleteFile = 5,
DeleteDirectory = 6,
TryCopy = 7,
Rename = 8,
CreateTempFile = 9,
CreateTempDirectory = 10,
}Expand description
A concrete operation entry point implemented by a filesystem provider.
§Examples
use qubit_fs::spi::ProviderOperation;
assert!(matches!(ProviderOperation::Stat, ProviderOperation::Stat));Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Stat = 0
Reads metadata for one path.
List = 1
Opens a directory listing session.
OpenReader = 2
Opens a file reader.
OpenWriter = 3
Opens a file writer.
CreateDirectory = 4
Creates a directory.
DeleteFile = 5
Deletes a file.
DeleteDirectory = 6
Deletes a directory.
TryCopy = 7
Attempts a provider-native copy.
Rename = 8
Renames a resource.
CreateTempFile = 9
Creates a temporary file.
CreateTempDirectory = 10
Creates a temporary directory.
Trait Implementations§
Source§impl Clone for ProviderOperation
impl Clone for ProviderOperation
impl Copy for ProviderOperation
Source§impl Debug for ProviderOperation
impl Debug for ProviderOperation
impl Eq for ProviderOperation
Source§impl Hash for ProviderOperation
impl Hash for ProviderOperation
Source§impl PartialEq for ProviderOperation
impl PartialEq for ProviderOperation
impl StructuralPartialEq for ProviderOperation
Auto Trait Implementations§
impl Freeze for ProviderOperation
impl RefUnwindSafe for ProviderOperation
impl Send for ProviderOperation
impl Sync for ProviderOperation
impl Unpin for ProviderOperation
impl UnsafeUnpin for ProviderOperation
impl UnwindSafe for ProviderOperation
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