Struct barter_data::subscriber::mapper::WebSocketSubMapper
source · pub struct WebSocketSubMapper;Expand description
Standard SubscriptionMapper for
WebSockets suitable for most exchanges.
Trait Implementations§
source§impl Clone for WebSocketSubMapper
impl Clone for WebSocketSubMapper
source§fn clone(&self) -> WebSocketSubMapper
fn clone(&self) -> WebSocketSubMapper
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for WebSocketSubMapper
impl Debug for WebSocketSubMapper
source§impl<'de> Deserialize<'de> for WebSocketSubMapper
impl<'de> Deserialize<'de> for WebSocketSubMapper
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for WebSocketSubMapper
impl Hash for WebSocketSubMapper
source§impl Ord for WebSocketSubMapper
impl Ord for WebSocketSubMapper
source§fn cmp(&self, other: &WebSocketSubMapper) -> Ordering
fn cmp(&self, other: &WebSocketSubMapper) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<WebSocketSubMapper> for WebSocketSubMapper
impl PartialEq<WebSocketSubMapper> for WebSocketSubMapper
source§fn eq(&self, other: &WebSocketSubMapper) -> bool
fn eq(&self, other: &WebSocketSubMapper) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<WebSocketSubMapper> for WebSocketSubMapper
impl PartialOrd<WebSocketSubMapper> for WebSocketSubMapper
source§fn partial_cmp(&self, other: &WebSocketSubMapper) -> Option<Ordering>
fn partial_cmp(&self, other: &WebSocketSubMapper) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for WebSocketSubMapper
impl Serialize for WebSocketSubMapper
source§impl SubscriptionMapper for WebSocketSubMapper
impl SubscriptionMapper for WebSocketSubMapper
fn map<Exchange, Kind>( subscriptions: &[Subscription<Exchange, Kind>] ) -> SubscriptionMetawhere Exchange: Connector, Kind: SubKind, Subscription<Exchange, Kind>: Identifier<Exchange::Channel> + Identifier<Exchange::Market>, ExchangeSub<Exchange::Channel, Exchange::Market>: Identifier<SubscriptionId>,
impl Copy for WebSocketSubMapper
impl Eq for WebSocketSubMapper
impl StructuralEq for WebSocketSubMapper
impl StructuralPartialEq for WebSocketSubMapper
Auto Trait Implementations§
impl RefUnwindSafe for WebSocketSubMapper
impl Send for WebSocketSubMapper
impl Sync for WebSocketSubMapper
impl Unpin for WebSocketSubMapper
impl UnwindSafe for WebSocketSubMapper
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.