pub trait SnapshotObjectUpload: Send + Debug {
// Required methods
fn write_chunk<'life0, 'life1, 'async_trait>(
&'life0 mut self,
bytes: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn commit<'life0, 'async_trait>(
self: Box<Self>,
digest: &'life0 str,
size_bytes: u64,
) -> Pin<Box<dyn Future<Output = Result<SnapshotObjectRef>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn abort<'async_trait>(
self: Box<Self>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait;
}Required Methods§
fn write_chunk<'life0, 'life1, 'async_trait>(
&'life0 mut self,
bytes: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn commit<'life0, 'async_trait>(
self: Box<Self>,
digest: &'life0 str,
size_bytes: u64,
) -> Pin<Box<dyn Future<Output = Result<SnapshotObjectRef>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn abort<'async_trait>(
self: Box<Self>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".