pub struct ExchangeStateChangedEvent {
pub exchange: ExchangeId,
pub old_state: ExchangeHealth,
pub new_state: ExchangeHealth,
pub reason: String,
pub ts: i64,
}Expand description
Exchange state changed (Active <-> Halted)
Fields§
§exchange: ExchangeIdExchange instance whose health changed.
old_state: ExchangeHealthPrevious exchange health state.
new_state: ExchangeHealthNew exchange health state.
reason: StringHuman-readable reason for the transition.
ts: i64Event timestamp in milliseconds since the Unix epoch.
Trait Implementations§
Source§impl Clone for ExchangeStateChangedEvent
impl Clone for ExchangeStateChangedEvent
Source§fn clone(&self) -> ExchangeStateChangedEvent
fn clone(&self) -> ExchangeStateChangedEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExchangeStateChangedEvent
impl Debug for ExchangeStateChangedEvent
Source§impl<'de> Deserialize<'de> for ExchangeStateChangedEvent
impl<'de> Deserialize<'de> for ExchangeStateChangedEvent
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
Auto Trait Implementations§
impl Freeze for ExchangeStateChangedEvent
impl RefUnwindSafe for ExchangeStateChangedEvent
impl Send for ExchangeStateChangedEvent
impl Sync for ExchangeStateChangedEvent
impl Unpin for ExchangeStateChangedEvent
impl UnsafeUnpin for ExchangeStateChangedEvent
impl UnwindSafe for ExchangeStateChangedEvent
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