pub trait StreamingUploader: Send {
// Required methods
async fn write_bytes(&mut self, data: Bytes) -> ObjectResult<()>;
async fn finish(self) -> ObjectResult<()>;
fn get_memory_usage(&self) -> u64;
}
Required Methods§
async fn write_bytes(&mut self, data: Bytes) -> ObjectResult<()>
async fn finish(self) -> ObjectResult<()>
fn get_memory_usage(&self) -> u64
Object Safety§
This trait is not object safe.