pub struct ClientFilestore<S> where
S: Store, { /* private fields */ }
Implementations
sourceimpl<S: Store> ClientFilestore<S>
impl<S: Store> ClientFilestore<S>
Trait Implementations
sourceimpl<S: Store> Filestore for ClientFilestore<S>
impl<S: Store> Filestore for ClientFilestore<S>
fn read<const N: usize>(
&mut self,
path: &PathBuf,
location: Location
) -> Result<Bytes<N>>
fn write(
&mut self,
path: &PathBuf,
location: Location,
data: &[u8]
) -> Result<()>
fn exists(&mut self, path: &PathBuf, location: Location) -> bool
fn remove_file(&mut self, path: &PathBuf, location: Location) -> Result<()>
fn remove_dir(&mut self, path: &PathBuf, location: Location) -> Result<()>
fn remove_dir_all(
&mut self,
path: &PathBuf,
location: Location
) -> Result<usize>
sourcefn read_dir_first(
&mut self,
clients_dir: &PathBuf,
location: Location,
not_before: Option<&PathBuf>
) -> Result<Option<(DirEntry, ReadDirState)>>
fn read_dir_first(
&mut self,
clients_dir: &PathBuf,
location: Location,
not_before: Option<&PathBuf>
) -> Result<Option<(DirEntry, ReadDirState)>>
Iterate over entries of a directory (both file and directory entries). Read more
sourcefn read_dir_next(
&mut self,
state: ReadDirState
) -> Result<Option<(DirEntry, ReadDirState)>>
fn read_dir_next(
&mut self,
state: ReadDirState
) -> Result<Option<(DirEntry, ReadDirState)>>
Continue iterating over entries of a directory. Read more
sourcefn read_dir_files_first(
&mut self,
clients_dir: &PathBuf,
location: Location,
user_attribute: Option<UserAttribute>
) -> Result<Option<(Option<Message>, ReadDirFilesState)>>
fn read_dir_files_first(
&mut self,
clients_dir: &PathBuf,
location: Location,
user_attribute: Option<UserAttribute>
) -> Result<Option<(Option<Message>, ReadDirFilesState)>>
Iterate over contents of files inside a directory. Read more
sourcefn read_dir_files_next(
&mut self,
state: ReadDirFilesState
) -> Result<Option<(Option<Message>, ReadDirFilesState)>>
fn read_dir_files_next(
&mut self,
state: ReadDirFilesState
) -> Result<Option<(Option<Message>, ReadDirFilesState)>>
Continuation of read_dir_files_first
.
fn locate_file(
&mut self,
location: Location,
underneath: Option<PathBuf>,
filename: PathBuf
) -> Result<Option<PathBuf>>
Auto Trait Implementations
impl<S> RefUnwindSafe for ClientFilestore<S> where
S: RefUnwindSafe,
impl<S> Send for ClientFilestore<S> where
S: Send,
impl<S> Sync for ClientFilestore<S> where
S: Sync,
impl<S> Unpin for ClientFilestore<S> where
S: Unpin,
impl<S> UnwindSafe for ClientFilestore<S> where
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more