#[non_exhaustive]pub enum AnyStore {
Http(HttpStore),
Local(LocalStore),
Noop(NoopStore),
PCloud(PCloudStore),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
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<PCloudStore> for AnyStore
impl From<PCloudStore> for AnyStore
Source§fn from(value: PCloudStore) -> Self
fn from(value: PCloudStore) -> Self
Converts to this type from the input type.
Source§impl Store for AnyStore
impl Store for AnyStore
Source§type File = AnyStoreFile
type File = AnyStoreFile
Associated type for files in the storage system.
Source§type Directory = AnyStoreDirectory
type Directory = AnyStoreDirectory
Associated type for directories in the storage system.
Source§async fn root(&self) -> Result<Self::Directory>
async fn root(&self) -> Result<Self::Directory>
Returns the root directory of the store. Read more
Auto Trait Implementations§
impl Freeze for AnyStore
impl !RefUnwindSafe for AnyStore
impl Send for AnyStore
impl Sync for AnyStore
impl Unpin for AnyStore
impl !UnwindSafe for AnyStore
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