pub struct MdSubscription {
pub id: SubscriptionId,
pub instrument: InstrumentId,
pub kind: MdSubKind,
pub opts: SubscribeOpts,
pub ws: MarketDataSubscribe,
}Expand description
One live market data subscription, as the connector remembers it.
Fields§
§id: SubscriptionIdThe id the bot got from subscribe_*.
instrument: InstrumentIdThe instrument the data is about.
kind: MdSubKindWhat the subscription delivers.
opts: SubscribeOptsThe options given at subscribe time (backpressure policy, depth).
ws: MarketDataSubscribeThe WebSocket message that created it. It is replayed after a reconnect, and its mirror image is sent to unsubscribe.
Trait Implementations§
Source§impl Clone for MdSubscription
impl Clone for MdSubscription
Source§fn clone(&self) -> MdSubscription
fn clone(&self) -> MdSubscription
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 moreAuto Trait Implementations§
impl Freeze for MdSubscription
impl RefUnwindSafe for MdSubscription
impl Send for MdSubscription
impl Sync for MdSubscription
impl Unpin for MdSubscription
impl UnsafeUnpin for MdSubscription
impl UnwindSafe for MdSubscription
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