pub struct LocalFsBackend { /* private fields */ }Expand description
Local-filesystem backend, sandboxed at a single root directory.
Handles set access and write times on every host. The creation time is set on Windows and macOS; other hosts have no call that sets it, so a requested creation time is ignored there and the other times still apply. The host keeps the change time.
Implementations§
Trait Implementations§
Source§fn open<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 SmbPath,
opts: OpenOptions,
) -> Pin<Box<dyn Future<Output = SmbResult<Box<dyn Handle>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn open<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 SmbPath,
opts: OpenOptions,
) -> Pin<Box<dyn Future<Output = SmbResult<Box<dyn Handle>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Open or create a file or directory. Returns a fresh handle.
Source§fn unlink<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 SmbPath,
) -> Pin<Box<dyn Future<Output = SmbResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn unlink<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 SmbPath,
) -> Pin<Box<dyn Future<Output = SmbResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete a file or an empty directory.
Source§fn rename<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
from: &'life1 SmbPath,
to: &'life2 SmbPath,
replace_if_exists: bool,
) -> Pin<Box<dyn Future<Output = SmbResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn rename<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
from: &'life1 SmbPath,
to: &'life2 SmbPath,
replace_if_exists: bool,
) -> Pin<Box<dyn Future<Output = SmbResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn capabilities(&self) -> BackendCapabilities
fn capabilities(&self) -> BackendCapabilities
Static capabilities. TREE_CONNECT clamps access to read-only when
is_read_only is set.Auto Trait Implementations§
impl Freeze for LocalFsBackend
impl RefUnwindSafe for LocalFsBackend
impl Send for LocalFsBackend
impl Sync for LocalFsBackend
impl Unpin for LocalFsBackend
impl UnsafeUnpin for LocalFsBackend
impl UnwindSafe for LocalFsBackend
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