pub struct MatchingEngine { /* private fields */ }Implementations§
Source§impl MatchingEngine
impl MatchingEngine
pub fn new() -> Self
pub fn modify( &mut self, global_order_id: Uuid, new_price: Option<u32>, new_qty: Option<u32>, span: &Span, ) -> Result<(), Error>
pub fn cancel( &mut self, global_order_id: Uuid, span: &Span, ) -> Result<CancelOutcome, Error>
pub fn match_order(&mut self, order: NewOrder, span: &Span) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MatchingEngine
impl RefUnwindSafe for MatchingEngine
impl Send for MatchingEngine
impl Sync for MatchingEngine
impl Unpin for MatchingEngine
impl UnwindSafe for MatchingEngine
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