pub enum SubscriptionState {
Pending,
Subscribed,
Refused,
Quiet,
}Expand description
Where a standing subscription (orders, pnl) stands at the upstream WS.
Variants§
Pending
Subscribe sent; CPAPI has neither honoured nor refused it yet.
Subscribed
CPAPI has sent at least one real frame on the topic this connection.
Refused
CPAPI answered the subscribe with an error; the connector is retrying.
Quiet
Asked repeatedly (BEZANT_EVENTS_QUIET_AFTER_ROUNDS) with neither a
frame nor a refusal. CPAPI honours sor+{} in silence when there are
no live orders, so this is subscribed-as-far-as-anyone-can-tell: the
connector stops re-asking. A refusal puts it back to refused; the
first real frame makes it subscribed.
Trait Implementations§
Source§impl Clone for SubscriptionState
impl Clone for SubscriptionState
Source§fn clone(&self) -> SubscriptionState
fn clone(&self) -> SubscriptionState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SubscriptionState
Source§impl Debug for SubscriptionState
impl Debug for SubscriptionState
impl Eq for SubscriptionState
Source§impl PartialEq for SubscriptionState
impl PartialEq for SubscriptionState
Source§impl Serialize for SubscriptionState
impl Serialize for SubscriptionState
impl StructuralPartialEq for SubscriptionState
Auto Trait Implementations§
impl Freeze for SubscriptionState
impl RefUnwindSafe for SubscriptionState
impl Send for SubscriptionState
impl Sync for SubscriptionState
impl Unpin for SubscriptionState
impl UnsafeUnpin for SubscriptionState
impl UnwindSafe for SubscriptionState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more