pub struct ZeroCopyConfig {
pub price_decimals: u32,
pub quantity_decimals: u32,
pub symbol_map: FxHashMap<u32, String>,
}Expand description
Exchange-specific configuration for zero-copy parsing
Fields§
§price_decimals: u32Number of decimal places for prices
quantity_decimals: u32Number of decimal places for quantities
symbol_map: FxHashMap<u32, String>Symbol ID to symbol name mapping
Implementations§
Source§impl ZeroCopyConfig
impl ZeroCopyConfig
Sourcepub fn new_empty(price_decimals: u32, quantity_decimals: u32) -> Self
pub fn new_empty(price_decimals: u32, quantity_decimals: u32) -> Self
Create a new configuration with no symbol mapping
This constructor creates a configuration without any symbol mapping. Symbol mapping must be added at runtime.
Sourcepub fn add_symbol(&mut self, symbol_id: u32, symbol: String)
pub fn add_symbol(&mut self, symbol_id: u32, symbol: String)
Add a symbol mapping to the configuration
Auto Trait Implementations§
impl Freeze for ZeroCopyConfig
impl RefUnwindSafe for ZeroCopyConfig
impl Send for ZeroCopyConfig
impl Sync for ZeroCopyConfig
impl Unpin for ZeroCopyConfig
impl UnwindSafe for ZeroCopyConfig
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