pub trait ExchangeServer:
Default
+ Debug
+ Clone
+ Send {
const ID: ExchangeId;
// Required method
fn websocket_url() -> &'static str;
}Expand description
Used when an exchange has servers different
InstrumentKind market data on distinct servers,
allowing all the Connector logic to be identical apart from what this trait provides.
§Examples
Required Associated Constants§
const ID: ExchangeId
Required Methods§
fn websocket_url() -> &'static str
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.