pub struct StorageWriter { /* private fields */ }Expand description
A writer for storing data in chunks This allows efficient streaming writes without loading entire content into memory
Implementations§
Source§impl StorageWriter
impl StorageWriter
Sourcepub async fn write_chunk(&mut self, chunk: &[u8]) -> Result<(), StorageError>
pub async fn write_chunk(&mut self, chunk: &[u8]) -> Result<(), StorageError>
Write a chunk of data to storage
Sourcepub async fn finish(self) -> Result<String, StorageError>
pub async fn finish(self) -> Result<String, StorageError>
Finish writing and return the storage location
Auto Trait Implementations§
impl !Freeze for StorageWriter
impl !RefUnwindSafe for StorageWriter
impl Send for StorageWriter
impl Sync for StorageWriter
impl Unpin for StorageWriter
impl UnsafeUnpin for StorageWriter
impl UnwindSafe for StorageWriter
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