pub struct DiskFilesystem { /* private fields */ }Expand description
A tokio based disk filesystem implement
Implementations§
Source§impl DiskFilesystem
impl DiskFilesystem
Sourcepub fn new(base: PathBuf) -> Self
pub fn new(base: PathBuf) -> Self
create DiskFilesystem by base path
Trait Implementations§
Source§impl Clone for DiskFilesystem
impl Clone for DiskFilesystem
Source§fn clone(&self) -> DiskFilesystem
fn clone(&self) -> DiskFilesystem
Returns a duplicate 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 DiskFilesystem
impl Debug for DiskFilesystem
Source§impl Filesystem for DiskFilesystem
impl Filesystem for DiskFilesystem
type File = DiskFile
type OpenFile<'a> = impl Future<Output = Result<<DiskFilesystem as Filesystem>::File, Error>> + Send + Sync + 'a where Self: 'a
type IsDir<'a> = impl Future<Output = Result<bool, Error>> + Send + Sync + 'a where Self: 'a
type Metadata<'a> = impl Future<Output = Result<Metadata, Error>> + Send + Sync + 'a where Self: 'a
Source§impl From<&Path> for DiskFilesystem
impl From<&Path> for DiskFilesystem
Source§impl From<&str> for DiskFilesystem
impl From<&str> for DiskFilesystem
Auto Trait Implementations§
impl Freeze for DiskFilesystem
impl RefUnwindSafe for DiskFilesystem
impl Send for DiskFilesystem
impl Sync for DiskFilesystem
impl Unpin for DiskFilesystem
impl UnwindSafe for DiskFilesystem
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