pub struct LocalFileSystem;Expand description
Tokio-backed filesystem implementation for local repositories.
Trait Implementations§
Source§impl FileSystem for LocalFileSystem
impl FileSystem for LocalFileSystem
Source§fn canonicalize<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<PathBuf>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn canonicalize<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<PathBuf>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Resolves a path to its canonical absolute representation. Read more
Source§fn open_beneath<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
root: &'life1 Path,
path: &'life2 Path,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AsyncRead + Send + Unpin>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn open_beneath<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
root: &'life1 Path,
path: &'life2 Path,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AsyncRead + Send + Unpin>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Opens a repository-relative file without following symlinks beneath
root. Read moreAuto Trait Implementations§
impl Freeze for LocalFileSystem
impl RefUnwindSafe for LocalFileSystem
impl Send for LocalFileSystem
impl Sync for LocalFileSystem
impl Unpin for LocalFileSystem
impl UnsafeUnpin for LocalFileSystem
impl UnwindSafe for LocalFileSystem
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