Skip to main content

unsubscribe_unknown

Function unsubscribe_unknown 

Source
pub async fn unsubscribe_unknown<M: OrderBookSource + ?Sized>(md: &M)
Expand description

Unsubscribing an id the connector never gave out is refused: [Error::Rejected] with code unknown_subscription. The same answer at every broker, so a bot needs one branch for it.

§Panics

With [conformance:unsubscribe_unknown] ... when the answer is anything else.

§Examples

brokapi_conformance::unsubscribe_unknown(&md).await;