Trait trussed::client::FilesystemClient
source · [−]pub trait FilesystemClient: PollClient {
fn debug_dump_store(&mut self) -> ClientResult<'_, DebugDumpStore, Self> { ... }
fn read_dir_first(
&mut self,
location: Location,
dir: PathBuf,
not_before_filename: Option<PathBuf>
) -> ClientResult<'_, ReadDirFirst, Self> { ... }
fn read_dir_next(&mut self) -> ClientResult<'_, ReadDirNext, Self> { ... }
fn read_dir_files_first(
&mut self,
location: Location,
dir: PathBuf,
user_attribute: Option<UserAttribute>
) -> ClientResult<'_, ReadDirFilesFirst, Self> { ... }
fn read_dir_files_next(
&mut self
) -> ClientResult<'_, ReadDirFilesNext, Self> { ... }
fn remove_dir(
&mut self,
location: Location,
path: PathBuf
) -> ClientResult<'_, RemoveDirAll, Self> { ... }
fn remove_dir_all(
&mut self,
location: Location,
path: PathBuf
) -> ClientResult<'_, RemoveDirAll, Self> { ... }
fn remove_file(
&mut self,
location: Location,
path: PathBuf
) -> ClientResult<'_, RemoveFile, Self> { ... }
fn read_file(
&mut self,
location: Location,
path: PathBuf
) -> ClientResult<'_, ReadFile, Self> { ... }
fn locate_file(
&mut self,
location: Location,
dir: Option<PathBuf>,
filename: PathBuf
) -> ClientResult<'_, LocateFile, Self> { ... }
fn write_file(
&mut self,
location: Location,
path: PathBuf,
data: Message,
user_attribute: Option<UserAttribute>
) -> ClientResult<'_, WriteFile, Self> { ... }
}
Expand description
Read/Write/Delete files, iterate over directories.