pub enum PollResult {
Fills {
instance: ExchangeInstance,
fills: Vec<Fill>,
},
Quotes {
instance: ExchangeInstance,
quotes: Vec<Quote>,
},
ExchangeHealth {
instance: ExchangeInstance,
health: ExchangeHealth,
},
Error {
instance: ExchangeInstance,
error: String,
},
}Expand description
Message from polling tasks to the main loop
Variants§
Fills
User fills were polled from an exchange.
Fields
§
instance: ExchangeInstanceExchange instance.
Quotes
Quotes were polled from an exchange.
Fields
§
instance: ExchangeInstanceExchange instance.
ExchangeHealth
Exchange health changed.
Error
Polling task returned an error.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PollResult
impl RefUnwindSafe for PollResult
impl Send for PollResult
impl Sync for PollResult
impl Unpin for PollResult
impl UnsafeUnpin for PollResult
impl UnwindSafe for PollResult
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