pub trait OrderBookMap: Clone {
type Key;
// Required methods
fn keys(&self) -> impl Iterator<Item = &Self::Key>;
fn find(&self, key: &Self::Key) -> Option<Arc<RwLock<OrderBook>>>;
}Expand description
Collection of shared-state Instrument OrderBooks. Manage the local books using
the super::manager module, and then clone the map for viewing the up to
date OrderBooks elsewhere.
See OrderBookMapSingle and OrderBookMapMulti for implementations.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.