pub struct LocalStoreFile { /* private fields */ }
Expand description
Representation of a file in the local store.
Trait Implementations§
Source§impl Debug for LocalStoreFile
impl Debug for LocalStoreFile
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 StoreFile for LocalStoreFile
impl StoreFile for LocalStoreFile
Source§async fn exists(&self) -> Result<bool>
async fn exists(&self) -> Result<bool>
Checks if the file exists.
Returns a future that resolves to true
if the file exists, otherwise
false
.
Source§async fn metadata(&self) -> Result<Self::Metadata>
async fn metadata(&self) -> Result<Self::Metadata>
Retrieves the metadata of the file.
Returns a future that resolves to the file’s metadata, such as size and timestamps.
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.
Returns a future that resolves to a reader that can read the specified range of the file.
Source§type FileReader = LocalStoreFileReader
type FileReader = LocalStoreFileReader
Associated type for the reader that reads the file’s content.
Source§type FileWriter = LocalStoreFileWriter
type FileWriter = LocalStoreFileWriter
Associated type for the reader that reads the file’s content.
Source§type Metadata = LocalStoreFileMetadata
type Metadata = LocalStoreFileMetadata
Associated type for the metadata associated with the file.
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 LocalStoreFile
impl RefUnwindSafe for LocalStoreFile
impl Send for LocalStoreFile
impl Sync for LocalStoreFile
impl Unpin for LocalStoreFile
impl UnwindSafe for LocalStoreFile
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