pub struct FallbackStateMachine { /* private fields */ }Expand description
Fallback state machine
Implementations§
Source§impl FallbackStateMachine
impl FallbackStateMachine
pub fn with_defaults() -> Self
pub fn new(trigger: FallbackTrigger) -> Self
pub fn metrics(&self) -> &FallbackMetrics
pub fn current_mode(&self) -> TransportMode
pub fn check_and_fallback(&self) -> bool
pub fn record_failure(&self)
pub fn upgrade(&self)
pub fn should_probe(&self) -> bool
pub fn record_probe(&self)
Auto Trait Implementations§
impl !Freeze for FallbackStateMachine
impl !RefUnwindSafe for FallbackStateMachine
impl !UnwindSafe for FallbackStateMachine
impl Send for FallbackStateMachine
impl Sync for FallbackStateMachine
impl Unpin for FallbackStateMachine
impl UnsafeUnpin for FallbackStateMachine
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