pub struct LocalStore(/* private fields */);
Expand description
Wrapper for the local store, enabling shared ownership.
Implementations§
Trait Implementations§
Source§impl Clone for LocalStore
impl Clone for LocalStore
Source§fn clone(&self) -> LocalStore
fn clone(&self) -> LocalStore
Returns a copy 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 LocalStore
impl Debug for LocalStore
Source§impl From<LocalStore> for AnyStore
impl From<LocalStore> for AnyStore
Source§fn from(value: LocalStore) -> Self
fn from(value: LocalStore) -> Self
Converts to this type from the input type.
Source§impl From<PathBuf> for LocalStore
impl From<PathBuf> for LocalStore
Source§impl Store for LocalStore
impl Store for LocalStore
Source§async fn get_dir<P: Into<PathBuf>>(&self, path: P) -> Result<Self::Directory>
async fn get_dir<P: Into<PathBuf>>(&self, path: P) -> Result<Self::Directory>
Retrieves a directory at the specified path in the local store.
Merges the root path with the given path to obtain the full directory path.
Source§async fn get_file<P: Into<PathBuf>>(&self, path: P) -> Result<Self::File>
async fn get_file<P: Into<PathBuf>>(&self, path: P) -> Result<Self::File>
Retrieves a file at the specified path in the local store.
Merges the root path with the given path to obtain the full file path.
Source§type Directory = LocalStoreDirectory
type Directory = LocalStoreDirectory
Associated type for directories in the storage system.
Source§type File = LocalStoreFile
type File = LocalStoreFile
Associated type for files in the storage system.
Auto Trait Implementations§
impl Freeze for LocalStore
impl RefUnwindSafe for LocalStore
impl Send for LocalStore
impl Sync for LocalStore
impl Unpin for LocalStore
impl UnwindSafe for LocalStore
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