pub struct SimpleMatcher { /* private fields */ }Implementations§
Source§impl SimpleMatcher
impl SimpleMatcher
Trait Implementations§
Source§impl Default for SimpleMatcher
impl Default for SimpleMatcher
Source§impl Matcher for SimpleMatcher
impl Matcher for SimpleMatcher
Source§fn cancel_order(&mut self, order_id: u64)
fn cancel_order(&mut self, order_id: u64)
Cancels a specific order by ID
Source§fn cancel_all(&mut self)
fn cancel_all(&mut self)
Cancels all open orders
Source§fn process_quote(&mut self, state: &MarketState) -> Vec<FillEvent>
fn process_quote(&mut self, state: &MarketState) -> Vec<FillEvent>
Processes a new quote against open orders and returns any fill events
Source§fn get_orders(&self) -> &Vec<Order>
fn get_orders(&self) -> &Vec<Order>
Returns a reference to the current list of orders
Auto Trait Implementations§
impl Freeze for SimpleMatcher
impl RefUnwindSafe for SimpleMatcher
impl Send for SimpleMatcher
impl Sync for SimpleMatcher
impl Unpin for SimpleMatcher
impl UnsafeUnpin for SimpleMatcher
impl UnwindSafe for SimpleMatcher
Blanket Implementations§
impl<T> Allocation for T
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more