pub struct MappedMarketEvent {
pub sub: Option<SubscriptionId>,
pub event: Event,
}Expand description
An event mapped from a market data message, with the subscription it belongs to if known.
Fields§
§sub: Option<SubscriptionId>The subscription the event belongs to, when the caller of the mapper knew it.
event: EventThe mapped event.
Trait Implementations§
Source§impl Clone for MappedMarketEvent
impl Clone for MappedMarketEvent
Source§fn clone(&self) -> MappedMarketEvent
fn clone(&self) -> MappedMarketEvent
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 moreSource§impl Debug for MappedMarketEvent
impl Debug for MappedMarketEvent
Source§impl PartialEq for MappedMarketEvent
impl PartialEq for MappedMarketEvent
Source§fn eq(&self, other: &MappedMarketEvent) -> bool
fn eq(&self, other: &MappedMarketEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MappedMarketEvent
Auto Trait Implementations§
impl Freeze for MappedMarketEvent
impl RefUnwindSafe for MappedMarketEvent
impl Send for MappedMarketEvent
impl Sync for MappedMarketEvent
impl Unpin for MappedMarketEvent
impl UnsafeUnpin for MappedMarketEvent
impl UnwindSafe for MappedMarketEvent
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