pub struct HftPoolManager { /* private fields */ }Expand description
Combined HFT pool manager
Implementations§
Source§impl HftPoolManager
impl HftPoolManager
Sourcepub fn with_config(config: HftPoolConfig) -> Self
👎Deprecated: Use const generics with specific type aliases instead
pub fn with_config(config: HftPoolConfig) -> Self
Create a new HFT pool manager with custom configuration
Note: This method is deprecated in favor of const generics.
Use specific type aliases like OrderPool
Sourcepub fn acquire_order(&self) -> OrderHandle
pub fn acquire_order(&self) -> OrderHandle
Acquire an order from the pool
Sourcepub fn acquire_trade(&self) -> TradeHandle
pub fn acquire_trade(&self) -> TradeHandle
Acquire a trade from the pool
Sourcepub fn acquire_buffer(&self) -> HftBufferHandle
pub fn acquire_buffer(&self) -> HftBufferHandle
Acquire a buffer from the pool
Sourcepub fn stats(&self) -> HftPoolStats
pub fn stats(&self) -> HftPoolStats
Get pool statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HftPoolManager
impl !RefUnwindSafe for HftPoolManager
impl Send for HftPoolManager
impl Sync for HftPoolManager
impl Unpin for HftPoolManager
impl !UnwindSafe for HftPoolManager
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