#[non_exhaustive]pub enum AnyStoreFile {
Http(HttpStoreFile),
Local(LocalStoreFile),
Noop(NoopStoreFile),
PCloud(PCloudStoreFile),
}
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 Debug for AnyStoreFile
impl Debug for AnyStoreFile
Source§impl From<HttpStoreFile> for AnyStoreFile
impl From<HttpStoreFile> for AnyStoreFile
Source§fn from(value: HttpStoreFile) -> Self
fn from(value: HttpStoreFile) -> Self
Converts to this type from the input type.
Source§impl From<LocalStoreFile> for AnyStoreFile
impl From<LocalStoreFile> for AnyStoreFile
Source§fn from(value: LocalStoreFile) -> Self
fn from(value: LocalStoreFile) -> Self
Converts to this type from the input type.
Source§impl From<NoopStoreFile> for AnyStoreFile
impl From<NoopStoreFile> for AnyStoreFile
Source§fn from(value: NoopStoreFile) -> Self
fn from(value: NoopStoreFile) -> Self
Converts to this type from the input type.
Source§impl From<PCloudStoreFile> for AnyStoreFile
impl From<PCloudStoreFile> for AnyStoreFile
Source§fn from(value: PCloudStoreFile) -> Self
fn from(value: PCloudStoreFile) -> Self
Converts to this type from the input type.
Source§impl StoreFile for AnyStoreFile
impl StoreFile for AnyStoreFile
Source§type FileReader = AnyStoreFileReader
type FileReader = AnyStoreFileReader
Associated type for the reader that reads the file’s content.
Source§type FileWriter = AnyStoreFileWriter
type FileWriter = AnyStoreFileWriter
Associated type for the reader that reads the file’s content.
Source§type Metadata = AnyStoreFileMetadata
type Metadata = AnyStoreFileMetadata
Associated type for the metadata associated with the file.
Source§async fn metadata(&self) -> Result<Self::Metadata>
async fn metadata(&self) -> Result<Self::Metadata>
Retrieves the metadata of the file. Read more
Source§async fn read<R: RangeBounds<u64>>(&self, range: R) -> Result<Self::FileReader>
async fn read<R: RangeBounds<u64>>(&self, range: R) -> Result<Self::FileReader>
Reads a portion of the file’s content, specified by a byte range. Read more
Source§async fn write(&self, options: WriteOptions) -> Result<Self::FileWriter>
async fn write(&self, options: WriteOptions) -> Result<Self::FileWriter>
Creates a writer
Auto Trait Implementations§
impl Freeze for AnyStoreFile
impl !RefUnwindSafe for AnyStoreFile
impl Send for AnyStoreFile
impl Sync for AnyStoreFile
impl Unpin for AnyStoreFile
impl !UnwindSafe for AnyStoreFile
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