pub struct StorageFile { /* private fields */ }Implementations§
Source§impl StorageFile
impl StorageFile
pub fn length(&self) -> u64
pub async fn retry_append(&mut self) -> Result<Option<StorageBatch<u8>>, Error>
pub async fn write_retained_at( &mut self, offset: u64, bytes: StorageBatch<u8>, ) -> Result<(), Error>
pub async fn write_all(&mut self, bytes: Vec<u8>) -> Result<(), Error>
pub async fn finish(&mut self) -> Result<FileReference, Error>
pub async fn abort(&mut self) -> Result<(), Error>
Source§impl StorageFile
impl StorageFile
pub fn session(&self) -> Option<&FileSession>
Trait Implementations§
Source§impl Drop for StorageFile
impl Drop for StorageFile
Auto Trait Implementations§
impl !RefUnwindSafe for StorageFile
impl !UnwindSafe for StorageFile
impl Freeze for StorageFile
impl Send for StorageFile
impl Sync for StorageFile
impl Unpin for StorageFile
impl UnsafeUnpin for StorageFile
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