pub enum Fs {
Read {
path: String,
offset: u64,
len: Option<u64>,
},
Write {
path: String,
data: Vec<u8>,
mode: WriteMode,
perm: Option<u32>,
atomic: bool,
},
Append {
path: String,
data: Vec<u8>,
},
Stat {
path: String,
follow: bool,
},
List {
path: String,
glob: Option<String>,
hidden: bool,
cursor: Option<String>,
},
Mkdir {
path: String,
parents: bool,
perm: Option<u32>,
},
Remove {
path: String,
recursive: bool,
to_trash: bool,
},
Rename {
from: String,
to: String,
overwrite: bool,
},
Chmod {
path: String,
mode: u32,
},
Watch {
path: String,
recursive: bool,
},
Unwatch {
id: u64,
},
}Variants§
Read
Write
Append
Stat
List
Mkdir
Remove
to_trash defaults to true; permanent delete always shows a card.
Rename
Chmod
Watch
Unwatch
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fs
impl<'de> Deserialize<'de> for Fs
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
impl Eq for Fs
impl StructuralPartialEq for Fs
Auto Trait Implementations§
impl Forget for Fs
impl Freeze for Fs
impl RefUnwindSafe for Fs
impl Send for Fs
impl Sync for Fs
impl Unpin for Fs
impl UnsafeUnpin for Fs
impl UnwindSafe for Fs
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