pub struct MultiCloudManagerBuilder { /* private fields */ }Expand description
Builder for MultiCloudManager
Implementations§
Source§impl MultiCloudManagerBuilder
impl MultiCloudManagerBuilder
Sourcepub fn add_provider(self, config: CloudProviderConfig) -> Self
pub fn add_provider(self, config: CloudProviderConfig) -> Self
Adds a provider configuration
Sourcepub fn with_routing_strategy(self, strategy: RoutingStrategy) -> Self
pub fn with_routing_strategy(self, strategy: RoutingStrategy) -> Self
Sets the routing strategy
Sourcepub fn with_failover(self, enabled: bool) -> Self
pub fn with_failover(self, enabled: bool) -> Self
Enables or disables failover
Sourcepub fn with_max_failover_attempts(self, attempts: usize) -> Self
pub fn with_max_failover_attempts(self, attempts: usize) -> Self
Sets maximum failover attempts
Sourcepub fn with_latency_routing(self, enabled: bool) -> Self
pub fn with_latency_routing(self, enabled: bool) -> Self
Enables latency-based routing
Sourcepub fn with_cost_routing(self, enabled: bool) -> Self
pub fn with_cost_routing(self, enabled: bool) -> Self
Enables cost-optimized routing
Sourcepub fn with_replication(self, enabled: bool) -> Self
pub fn with_replication(self, enabled: bool) -> Self
Enables replication across providers
Sourcepub fn with_client_region(self, region: CloudRegion) -> Self
pub fn with_client_region(self, region: CloudRegion) -> Self
Sets the client region for region-aware routing
Sourcepub fn with_health_check_interval(self, interval: Duration) -> Self
pub fn with_health_check_interval(self, interval: Duration) -> Self
Sets the health check interval
Sourcepub fn build(self) -> Result<MultiCloudManager>
pub fn build(self) -> Result<MultiCloudManager>
Builds the multi-cloud manager
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MultiCloudManagerBuilder
impl RefUnwindSafe for MultiCloudManagerBuilder
impl Send for MultiCloudManagerBuilder
impl Sync for MultiCloudManagerBuilder
impl Unpin for MultiCloudManagerBuilder
impl UnsafeUnpin for MultiCloudManagerBuilder
impl UnwindSafe for MultiCloudManagerBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.