pub struct DefaultResilienceOrchestrator;Expand description
Stub implementation when resilience features are not available
Implementations§
Trait Implementations§
Source§impl Default for DefaultResilienceOrchestrator
impl Default for DefaultResilienceOrchestrator
Source§fn default() -> DefaultResilienceOrchestrator
fn default() -> DefaultResilienceOrchestrator
Returns the “default value” for a type. Read more
Source§impl ResilienceOrchestrator for DefaultResilienceOrchestrator
impl ResilienceOrchestrator for DefaultResilienceOrchestrator
Source§fn execute_with_policy<'life0, 'async_trait, T, F, Fut, E>(
&'life0 self,
_policy: ResiliencePolicy,
operation: F,
) -> Pin<Box<dyn Future<Output = Result<T, ResilienceOrchestrationError>> + Send + 'async_trait>>where
'life0: 'async_trait,
F: FnMut() -> Fut + Send + 'async_trait,
Fut: Future<Output = Result<T, E>> + Send + 'async_trait,
E: Into<ResilienceOrchestrationError> + Send + 'async_trait,
T: 'async_trait,
DefaultResilienceOrchestrator: 'async_trait,
fn execute_with_policy<'life0, 'async_trait, T, F, Fut, E>(
&'life0 self,
_policy: ResiliencePolicy,
operation: F,
) -> Pin<Box<dyn Future<Output = Result<T, ResilienceOrchestrationError>> + Send + 'async_trait>>where
'life0: 'async_trait,
F: FnMut() -> Fut + Send + 'async_trait,
Fut: Future<Output = Result<T, E>> + Send + 'async_trait,
E: Into<ResilienceOrchestrationError> + Send + 'async_trait,
T: 'async_trait,
DefaultResilienceOrchestrator: 'async_trait,
Execute an operation with the specified resilience policy
Source§fn get_circuit_breaker(&self, _name: &str) -> Option<&CircuitBreaker>
fn get_circuit_breaker(&self, _name: &str) -> Option<&CircuitBreaker>
Get a named circuit breaker for manual control
Source§fn get_rate_limiter(&self, _name: &str) -> Option<&RateLimiter>
fn get_rate_limiter(&self, _name: &str) -> Option<&RateLimiter>
Get a named rate limiter for manual control
Source§fn metrics(&self) -> ResilienceMetrics
fn metrics(&self) -> ResilienceMetrics
Get resilience metrics for monitoring
Source§fn execute_operation<'life0, 'async_trait, T, E, Op>(
&'life0 self,
operation: Op,
) -> Pin<Box<dyn Future<Output = Result<T, ResilienceOrchestrationError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Op: ResilientOperation<T, E> + Send + Sync + 'async_trait,
E: Into<ResilienceOrchestrationError> + Send + 'async_trait,
T: 'async_trait,
Self: 'async_trait,
fn execute_operation<'life0, 'async_trait, T, E, Op>(
&'life0 self,
operation: Op,
) -> Pin<Box<dyn Future<Output = Result<T, ResilienceOrchestrationError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Op: ResilientOperation<T, E> + Send + Sync + 'async_trait,
E: Into<ResilienceOrchestrationError> + Send + 'async_trait,
T: 'async_trait,
Self: 'async_trait,
Execute a resilient operation (domain entity implementing
ResilientOperation)
Auto Trait Implementations§
impl Freeze for DefaultResilienceOrchestrator
impl RefUnwindSafe for DefaultResilienceOrchestrator
impl Send for DefaultResilienceOrchestrator
impl Sync for DefaultResilienceOrchestrator
impl Unpin for DefaultResilienceOrchestrator
impl UnsafeUnpin for DefaultResilienceOrchestrator
impl UnwindSafe for DefaultResilienceOrchestrator
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