pub trait MultiUploadObjectHandler {
// Required methods
fn handle_create_session<'a>(
&'a self,
bucket: &'a str,
key: &'a str,
) -> Pin<Box<dyn Send + Future<Output = Result<String, ()>> + 'a>>;
fn handle_upload_part<'a>(
&'a self,
bucket: &'a str,
key: &'a str,
upload_id: &'a str,
part_number: u32,
body: &'a mut (dyn AsyncRead + Unpin + Send),
) -> Pin<Box<dyn Send + Future<Output = Result<String, ()>> + 'a>>;
fn handle_complete<'a>(
&'a self,
bucket: &'a str,
key: &'a str,
upload_id: &'a str,
data: &'a [(&'a str, u32)],
opts: MultiUploadObjectCompleteOption,
) -> Pin<Box<dyn Send + Future<Output = Result<String, ()>> + 'a>>;
fn handle_abort<'a>(
&'a self,
bucket: &'a str,
key: &'a str,
upload_id: &'a str,
) -> Pin<Box<dyn Send + Future<Output = Result<(), ()>> + 'a>>;
}Required Methods§
fn handle_create_session<'a>( &'a self, bucket: &'a str, key: &'a str, ) -> Pin<Box<dyn Send + Future<Output = Result<String, ()>> + 'a>>
Sourcefn handle_upload_part<'a>(
&'a self,
bucket: &'a str,
key: &'a str,
upload_id: &'a str,
part_number: u32,
body: &'a mut (dyn AsyncRead + Unpin + Send),
) -> Pin<Box<dyn Send + Future<Output = Result<String, ()>> + 'a>>
fn handle_upload_part<'a>( &'a self, bucket: &'a str, key: &'a str, upload_id: &'a str, part_number: u32, body: &'a mut (dyn AsyncRead + Unpin + Send), ) -> Pin<Box<dyn Send + Future<Output = Result<String, ()>> + 'a>>
return etag
fn handle_complete<'a>( &'a self, bucket: &'a str, key: &'a str, upload_id: &'a str, data: &'a [(&'a str, u32)], opts: MultiUploadObjectCompleteOption, ) -> Pin<Box<dyn Send + Future<Output = Result<String, ()>> + 'a>>
fn handle_abort<'a>( &'a self, bucket: &'a str, key: &'a str, upload_id: &'a str, ) -> Pin<Box<dyn Send + Future<Output = Result<(), ()>> + 'a>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".