pub struct LotBook { /* private fields */ }Expand description
The lot sizes of the instruments this connector has met. Cheap to share behind an Arc.
An instrument is remembered under every name a message can call it: the uid, the figi and the
TICKER_CLASSCODE form.
Implementations§
Source§impl LotBook
impl LotBook
Sourcepub fn put(
&self,
uid: &str,
figi: &str,
ticker: &str,
class_code: &str,
lot: i64,
)
pub fn put( &self, uid: &str, figi: &str, ticker: &str, class_code: &str, lot: i64, )
Remembers the lot of an instrument under its uid, figi and ticker with class code. A lot below 1 is ignored.
Sourcepub fn put_instrument(&self, asked: &InstrumentId, i: &Instrument)
pub fn put_instrument(&self, asked: &InstrumentId, i: &Instrument)
Remembers the lot from a directory record, under the name the caller asked with too.
Sourcepub fn put_id(&self, id: &InstrumentId, lot: i64)
pub fn put_id(&self, id: &InstrumentId, lot: i64)
Remembers the lot under the names of an [InstrumentId].
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LotBook
impl RefUnwindSafe for LotBook
impl Send for LotBook
impl Sync for LotBook
impl Unpin for LotBook
impl UnsafeUnpin for LotBook
impl UnwindSafe for LotBook
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].