pub struct OrderBookMapMulti<Key>{
pub books: FnvHashMap<Key, Arc<RwLock<OrderBook>>>,
}Expand description
Multiple Instrument OrderBook wrapped in a shared-state lock.
Fields§
§books: FnvHashMap<Key, Arc<RwLock<OrderBook>>>Implementations§
Source§impl<Key> OrderBookMapMulti<Key>
impl<Key> OrderBookMapMulti<Key>
pub const fn new( books: FnvHashMap<Key, Arc<RwLock<OrderBook>>>, ) -> OrderBookMapMulti<Key>
Trait Implementations§
Source§impl<Key> Clone for OrderBookMapMulti<Key>
impl<Key> Clone for OrderBookMapMulti<Key>
Source§fn clone(&self) -> OrderBookMapMulti<Key>
fn clone(&self) -> OrderBookMapMulti<Key>
Returns a duplicate 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<Key> Debug for OrderBookMapMulti<Key>
impl<Key> Debug for OrderBookMapMulti<Key>
Source§impl<Key> OrderBookMap for OrderBookMapMulti<Key>
impl<Key> OrderBookMap for OrderBookMapMulti<Key>
Auto Trait Implementations§
impl<Key> Freeze for OrderBookMapMulti<Key>
impl<Key> !RefUnwindSafe for OrderBookMapMulti<Key>
impl<Key> Send for OrderBookMapMulti<Key>where
Key: Send,
impl<Key> Sync for OrderBookMapMulti<Key>where
Key: Sync,
impl<Key> Unpin for OrderBookMapMulti<Key>where
Key: Unpin,
impl<Key> !UnwindSafe for OrderBookMapMulti<Key>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more