pub struct DefaultInstrumentRegistry { /* private fields */ }Expand description
Default implementation of instrument registry
Implementations§
Trait Implementations§
Source§impl Default for DefaultInstrumentRegistry
impl Default for DefaultInstrumentRegistry
Source§impl InstrumentRegistry for DefaultInstrumentRegistry
impl InstrumentRegistry for DefaultInstrumentRegistry
Source§fn cache_order_mapping(
&self,
order_id: &str,
instrument_id: InstrumentId,
metadata: Option<OrderMetadata>,
)
fn cache_order_mapping( &self, order_id: &str, instrument_id: InstrumentId, metadata: Option<OrderMetadata>, )
Cache bidirectional order ID to instrument mapping
Source§fn lookup_by_order_id(&self, order_id: &str) -> Option<InstrumentId>
fn lookup_by_order_id(&self, order_id: &str) -> Option<InstrumentId>
Lookup instrument ID by order ID
Source§fn normalize_symbol(&self, exchange_symbol: &str, venue: Venue) -> SmartString
fn normalize_symbol(&self, exchange_symbol: &str, venue: Venue) -> SmartString
Normalize exchange-specific symbol to standard format
Source§fn remove_mapping(&self, order_id: &str)
fn remove_mapping(&self, order_id: &str)
Remove order mapping (e.g., when order is fully filled)
Source§fn cleanup_expired(&self)
fn cleanup_expired(&self)
Cleanup expired entries
Source§fn get_cache_stats(&self) -> CacheStats
fn get_cache_stats(&self) -> CacheStats
Get cache statistics
Auto Trait Implementations§
impl Freeze for DefaultInstrumentRegistry
impl !RefUnwindSafe for DefaultInstrumentRegistry
impl Send for DefaultInstrumentRegistry
impl Sync for DefaultInstrumentRegistry
impl Unpin for DefaultInstrumentRegistry
impl !UnwindSafe for DefaultInstrumentRegistry
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