Skip to main content

HealOperations

Trait HealOperations 

Source
pub trait HealOperations:
    Send
    + Sync
    + Debug {
    type Error: Error + Send + Sync + 'static;
    type HealResultItem: Send + 'static;
    type HealOptions: Send + Sync + 'static;

    // Required methods
    fn heal_format<'life0, 'async_trait>(
        &'life0 self,
        dry_run: bool,
    ) -> Pin<Box<dyn Future<Output = Result<(Self::HealResultItem, Option<Self::Error>), Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn heal_bucket<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        bucket: &'life1 str,
        opts: &'life2 Self::HealOptions,
    ) -> Pin<Box<dyn Future<Output = Result<Self::HealResultItem, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn heal_object<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        bucket: &'life1 str,
        object: &'life2 str,
        version_id: &'life3 str,
        opts: &'life4 Self::HealOptions,
    ) -> Pin<Box<dyn Future<Output = Result<(Self::HealResultItem, Option<Self::Error>), 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 get_pool_and_set<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<(Option<usize>, Option<usize>, Option<usize>), Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn check_abandoned_parts<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        bucket: &'life1 str,
        object: &'life2 str,
        opts: &'life3 Self::HealOptions,
    ) -> 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;
}

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Source

type HealResultItem: Send + 'static

Source

type HealOptions: Send + Sync + 'static

Required Methods§

Source

fn heal_format<'life0, 'async_trait>( &'life0 self, dry_run: bool, ) -> Pin<Box<dyn Future<Output = Result<(Self::HealResultItem, Option<Self::Error>), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn heal_bucket<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, bucket: &'life1 str, opts: &'life2 Self::HealOptions, ) -> Pin<Box<dyn Future<Output = Result<Self::HealResultItem, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn heal_object<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, version_id: &'life3 str, opts: &'life4 Self::HealOptions, ) -> Pin<Box<dyn Future<Output = Result<(Self::HealResultItem, Option<Self::Error>), 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 get_pool_and_set<'life0, 'life1, 'async_trait>( &'life0 self, id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<(Option<usize>, Option<usize>, Option<usize>), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn check_abandoned_parts<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, opts: &'life3 Self::HealOptions, ) -> 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,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§