pub enum WebsocketMessage {
PriceInfo(PriceInfo),
SettingResponse(SettingResponse),
}Expand description
Represents different types of messages received over a WebSocket connection.
This enum encapsulates various types of messages that can be received over a WebSocket connection, such as price information or setting responses.
Variants§
PriceInfo(PriceInfo)
Represents a message containing price information.
SettingResponse(SettingResponse)
Represents a message containing setting-related data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WebsocketMessage
impl RefUnwindSafe for WebsocketMessage
impl Send for WebsocketMessage
impl Sync for WebsocketMessage
impl Unpin for WebsocketMessage
impl UnwindSafe for WebsocketMessage
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