pub struct ProviderSwitch {
pub from: String,
pub to: String,
pub reason: SwitchReason,
}Expand description
A move from one step of a Failover chain to the next, reported as
StreamEvent::Switched and then as crate::Event::ProviderSwitched.
Fields§
§from: Stringprovider:model of the step that gave up.
to: Stringprovider:model of the step tried next.
reason: SwitchReasonTrait Implementations§
Source§impl Clone for ProviderSwitch
impl Clone for ProviderSwitch
Source§impl Debug for ProviderSwitch
impl Debug for ProviderSwitch
Source§impl<'de> Deserialize<'de> for ProviderSwitch
impl<'de> Deserialize<'de> for ProviderSwitch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProviderSwitch
Source§impl PartialEq for ProviderSwitch
impl PartialEq for ProviderSwitch
Source§impl Serialize for ProviderSwitch
impl Serialize for ProviderSwitch
impl StructuralPartialEq for ProviderSwitch
Auto Trait Implementations§
impl Forget for ProviderSwitch
impl Freeze for ProviderSwitch
impl Move for ProviderSwitch
impl RefUnwindSafe for ProviderSwitch
impl Send for ProviderSwitchwhere
RawVecInner: Send,
impl Sync for ProviderSwitchwhere
RawVecInner: Sync,
impl Unpin for ProviderSwitch
impl UnsafeUnpin for ProviderSwitch
impl UnwindSafe for ProviderSwitchwhere
RawVecInner: UnwindSafe,
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