pub enum TickerMessage {
Ticks(Vec<TickMessage>),
Raw(Vec<u8>),
Error(String),
OrderPostback(Result<Order, String>),
Message(Value),
ClosingMessage(Value),
}
Expand description
Parsed message from websocket
Variants§
Ticks(Vec<TickMessage>)
Quote packets for subscribed tokens
Raw(Vec<u8>)
Raw binary frame (when raw-only mode enabled)
Error(String)
Error response
OrderPostback(Result<Order, String>)
Order postback
Message(Value)
Messages and alerts from broker
ClosingMessage(Value)
Websocket closing frame
Trait Implementations§
Source§impl Clone for TickerMessage
impl Clone for TickerMessage
Source§fn clone(&self) -> TickerMessage
fn clone(&self) -> TickerMessage
Returns a duplicate of the value. Read more
1.0.0 · 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 TickerMessage
impl Debug for TickerMessage
Source§impl<'de> Deserialize<'de> for TickerMessage
impl<'de> Deserialize<'de> for TickerMessage
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
Source§impl From<TextMessage> for TickerMessage
impl From<TextMessage> for TickerMessage
Source§fn from(value: TextMessage) -> Self
fn from(value: TextMessage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TickerMessage
impl RefUnwindSafe for TickerMessage
impl Send for TickerMessage
impl Sync for TickerMessage
impl Unpin for TickerMessage
impl UnwindSafe for TickerMessage
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