Skip to main content

MultipartOperations

Trait MultipartOperations 

Source
pub trait MultipartOperations:
    Send
    + Sync
    + Debug {
    type Error: Error + Send + Sync + 'static;
    type ObjectInfo: Send + 'static;
    type ObjectOptions: Send + Sync + 'static;
    type PutObjectReader: Send + 'static;
    type CompletePart: Send + 'static;
    type ListMultipartsInfo: Send + 'static;
    type MultipartUploadResult: Send + 'static;
    type PartInfo: Send + 'static;
    type MultipartInfo: Send + 'static;
    type ListPartsInfo: Send + 'static;

    // Required methods
    fn list_multipart_uploads<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        bucket: &'life1 str,
        prefix: &'life2 str,
        key_marker: Option<String>,
        upload_id_marker: Option<String>,
        delimiter: Option<String>,
        max_uploads: usize,
    ) -> Pin<Box<dyn Future<Output = Result<Self::ListMultipartsInfo, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn new_multipart_upload<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        bucket: &'life1 str,
        object: &'life2 str,
        opts: &'life3 Self::ObjectOptions,
    ) -> Pin<Box<dyn Future<Output = Result<Self::MultipartUploadResult, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn copy_object_part<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'life7, 'life8, 'async_trait>(
        &'life0 self,
        src_bucket: &'life1 str,
        src_object: &'life2 str,
        dst_bucket: &'life3 str,
        dst_object: &'life4 str,
        upload_id: &'life5 str,
        part_id: usize,
        start_offset: i64,
        length: i64,
        src_info: &'life6 Self::ObjectInfo,
        src_opts: &'life7 Self::ObjectOptions,
        dst_opts: &'life8 Self::ObjectOptions,
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait,
             'life5: 'async_trait,
             'life6: 'async_trait,
             'life7: 'async_trait,
             'life8: 'async_trait;
    fn put_object_part<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
        &'life0 self,
        bucket: &'life1 str,
        object: &'life2 str,
        upload_id: &'life3 str,
        part_id: usize,
        data: &'life4 mut Self::PutObjectReader,
        opts: &'life5 Self::ObjectOptions,
    ) -> Pin<Box<dyn Future<Output = Result<Self::PartInfo, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait,
             'life5: 'async_trait;
    fn get_multipart_info<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        bucket: &'life1 str,
        object: &'life2 str,
        upload_id: &'life3 str,
        opts: &'life4 Self::ObjectOptions,
    ) -> Pin<Box<dyn Future<Output = Result<Self::MultipartInfo, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
    fn list_object_parts<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        bucket: &'life1 str,
        object: &'life2 str,
        upload_id: &'life3 str,
        part_number_marker: Option<usize>,
        max_parts: usize,
        opts: &'life4 Self::ObjectOptions,
    ) -> Pin<Box<dyn Future<Output = Result<Self::ListPartsInfo, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
    fn abort_multipart_upload<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        bucket: &'life1 str,
        object: &'life2 str,
        upload_id: &'life3 str,
        opts: &'life4 Self::ObjectOptions,
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
    fn complete_multipart_upload<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        self: Arc<Self>,
        bucket: &'life0 str,
        object: &'life1 str,
        upload_id: &'life2 str,
        uploaded_parts: Vec<Self::CompletePart>,
        opts: &'life3 Self::ObjectOptions,
    ) -> Pin<Box<dyn Future<Output = Result<Self::ObjectInfo, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Source

type ObjectInfo: Send + 'static

Source

type ObjectOptions: Send + Sync + 'static

Source

type PutObjectReader: Send + 'static

Source

type CompletePart: Send + 'static

Source

type ListMultipartsInfo: Send + 'static

Source

type MultipartUploadResult: Send + 'static

Source

type PartInfo: Send + 'static

Source

type MultipartInfo: Send + 'static

Source

type ListPartsInfo: Send + 'static

Required Methods§

Source

fn list_multipart_uploads<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, bucket: &'life1 str, prefix: &'life2 str, key_marker: Option<String>, upload_id_marker: Option<String>, delimiter: Option<String>, max_uploads: usize, ) -> Pin<Box<dyn Future<Output = Result<Self::ListMultipartsInfo, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn new_multipart_upload<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, opts: &'life3 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<Self::MultipartUploadResult, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn copy_object_part<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'life7, 'life8, 'async_trait>( &'life0 self, src_bucket: &'life1 str, src_object: &'life2 str, dst_bucket: &'life3 str, dst_object: &'life4 str, upload_id: &'life5 str, part_id: usize, start_offset: i64, length: i64, src_info: &'life6 Self::ObjectInfo, src_opts: &'life7 Self::ObjectOptions, dst_opts: &'life8 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait, 'life6: 'async_trait, 'life7: 'async_trait, 'life8: 'async_trait,

Source

fn put_object_part<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, upload_id: &'life3 str, part_id: usize, data: &'life4 mut Self::PutObjectReader, opts: &'life5 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<Self::PartInfo, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait,

Source

fn get_multipart_info<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, upload_id: &'life3 str, opts: &'life4 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<Self::MultipartInfo, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Source

fn list_object_parts<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, upload_id: &'life3 str, part_number_marker: Option<usize>, max_parts: usize, opts: &'life4 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<Self::ListPartsInfo, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Source

fn abort_multipart_upload<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, upload_id: &'life3 str, opts: &'life4 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Source

fn complete_multipart_upload<'life0, 'life1, 'life2, 'life3, 'async_trait>( self: Arc<Self>, bucket: &'life0 str, object: &'life1 str, upload_id: &'life2 str, uploaded_parts: Vec<Self::CompletePart>, opts: &'life3 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<Self::ObjectInfo, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§