pub enum Event {
Show 13 variants
Ticker(Ticker),
Trades(Vec<Fill>),
L2Snapshot(L2Snapshot),
L2Delta(L2Snapshot),
Candle(Candle),
Margin(Margin),
Position(PositionInfo),
Order(OrderState),
Fill(Fill),
Leverage(Vec<LeverageSetting>),
Error(Value),
Connected,
Disconnected(String),
}Expand description
Typed event payload emitted to handlers.
Variants§
Ticker(Ticker)
Trades(Vec<Fill>)
L2Snapshot(L2Snapshot)
L2Delta(L2Snapshot)
Candle(Candle)
Margin(Margin)
Position(PositionInfo)
Order(OrderState)
Fill(Fill)
Leverage(Vec<LeverageSetting>)
Error(Value)
Connected
Emitted on the Topic::Status channel when the WebSocket connection
is cleanly established (after the actor sends initial subscriptions).
Disconnected(String)
Emitted on the Topic::Status channel when the WebSocket connection
is lost for any reason. The string contains a human-readable cause.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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