pub struct LocalStore;Expand description
The local file system, for core’s local destination. Paths are file system paths.
Trait Implementations§
Source§impl Debug for LocalStore
impl Debug for LocalStore
Source§impl Default for LocalStore
impl Default for LocalStore
Source§impl Store for LocalStore
impl Store for LocalStore
fn caps(&self) -> Caps
Source§fn write(
&mut self,
local: &Path,
remote: &str,
exclusive: bool,
) -> Result<(), StoreError>
fn write( &mut self, local: &Path, remote: &str, exclusive: bool, ) -> Result<(), StoreError>
Write
local to remote, creating its folders. With exclusive, fail with
StoreError::Exists if something is there (only asked when caps().create_exclusive).Source§fn rename(
&mut self,
from: &str,
to: &str,
replace: bool,
) -> Result<(), StoreError>
fn rename( &mut self, from: &str, to: &str, replace: bool, ) -> Result<(), StoreError>
Rename
from to to, creating to’s folders. Without replace, fail with
StoreError::Exists if something is there (only asked when caps().rename_no_replace).fn exists(&mut self, remote: &str) -> Result<bool, StoreError>
Auto Trait Implementations§
impl Freeze for LocalStore
impl RefUnwindSafe for LocalStore
impl Send for LocalStore
impl Sync for LocalStore
impl Unpin for LocalStore
impl UnsafeUnpin for LocalStore
impl UnwindSafe for LocalStore
Blanket Implementations§
impl<T> Allocation for T
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