pub trait SubscriptionValidator {
type Parser: StreamParser;
// Required method
fn validate<'life0, 'async_trait, Exchange, Kind>(
instrument_map: Map<Instrument>,
websocket: &'life0 mut WebSocket
) -> Pin<Box<dyn Future<Output = Result<Map<Instrument>, SocketError>> + Send + 'async_trait>>
where Exchange: Connector + Send + 'async_trait,
Kind: SubKind + Send + 'async_trait,
'life0: 'async_trait;
}Expand description
Defines how to validate that actioned market data
Subscriptions were accepted by the exchange.