Skip to main content

ReplicationConfigurationExt

Trait ReplicationConfigurationExt 

Source
pub trait ReplicationConfigurationExt {
    // Required methods
    fn replicate(&self, opts: &ObjectOpts) -> bool;
    fn has_existing_object_replication(&self, arn: &str) -> (bool, bool);
    fn filter_actionable_rules(&self, obj: &ObjectOpts) -> ReplicationRules;
    fn get_destination(&self) -> Destination;
    fn has_active_rules(&self, prefix: &str, recursive: bool) -> bool;
    fn filter_target_arns(&self, obj: &ObjectOpts) -> Vec<String>;
    fn filter_force_delete_target_arns(&self, prefix: &str) -> Vec<String>;
    fn configured_target_arns(&self) -> HashSet<String>;

    // Provided method
    fn filter_target_replication_decisions(
        &self,
        obj: &ObjectOpts,
    ) -> Vec<(String, bool)> { ... }
}

Required Methods§

Source

fn replicate(&self, opts: &ObjectOpts) -> bool

Source

fn has_existing_object_replication(&self, arn: &str) -> (bool, bool)

Source

fn filter_actionable_rules(&self, obj: &ObjectOpts) -> ReplicationRules

Source

fn get_destination(&self) -> Destination

Source

fn has_active_rules(&self, prefix: &str, recursive: bool) -> bool

Source

fn filter_target_arns(&self, obj: &ObjectOpts) -> Vec<String>

Source

fn filter_force_delete_target_arns(&self, prefix: &str) -> Vec<String>

Source

fn configured_target_arns(&self) -> HashSet<String>

Every target ARN the configuration still names, whatever the rule’s status, prefix or filter: the set a pending replication delete may still be owed to. A target outside it was removed by the operator.

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ReplicationConfigurationExt for ReplicationConfiguration

Source§

fn has_existing_object_replication(&self, arn: &str) -> (bool, bool)

Check whether any object-replication rules exist

Source§

fn get_destination(&self) -> Destination

Retrieve the destination configuration

Source§

fn replicate(&self, obj: &ObjectOpts) -> bool

Determine whether an object should be replicated

Source§

fn has_active_rules(&self, prefix: &str, recursive: bool) -> bool

Check for an active rule Optionally accept a prefix When recursive is true, return true if any level under the prefix has an active rule Without a prefix, recursive behaves as true

Source§

fn configured_target_arns(&self) -> HashSet<String>

Filter target ARNs and return a slice of the distinct values in the config

Source§

fn filter_actionable_rules(&self, obj: &ObjectOpts) -> ReplicationRules

Source§

fn filter_target_arns(&self, obj: &ObjectOpts) -> Vec<String>

Source§

fn filter_force_delete_target_arns(&self, prefix: &str) -> Vec<String>

Source§

fn filter_target_replication_decisions( &self, obj: &ObjectOpts, ) -> Vec<(String, bool)>

Implementors§