pub trait SubscriptionValidator {
type Parser;
// Required method
fn validate<Exchange, InstrumentKey, Kind>(
instrument_map: Map<InstrumentKey>,
websocket: &mut WebSocket,
) -> impl Future<Output = Result<(Map<InstrumentKey>, Vec<WsMessage>), SocketError>> + Send
where Exchange: Connector + Send,
InstrumentKey: Send,
Kind: SubscriptionKind + Send;
}Expand description
Defines how to validate that actioned market data
Subscriptions were accepted by the exchange.
Required Associated Types§
Required Methods§
fn validate<Exchange, InstrumentKey, Kind>( instrument_map: Map<InstrumentKey>, websocket: &mut WebSocket, ) -> impl Future<Output = Result<(Map<InstrumentKey>, Vec<WsMessage>), SocketError>> + Send
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.