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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.