pub enum StpPolicy {
CancelIncoming,
CancelResting,
CancelBoth,
}Expand description
Self-trade prevention policy, carried by the incoming order with a book-level default (ARCHITECTURE.md section 7.5).
Variants§
CancelIncoming
Cancel the incoming order remainder at the first own resting order it would trade with.
CancelResting
Cancel the resting own order and continue the sweep.
CancelBoth
Cancel both the resting own order and the incoming remainder.
Trait Implementations§
impl Copy for StpPolicy
impl Eq for StpPolicy
impl StructuralPartialEq for StpPolicy
Auto Trait Implementations§
impl Forget for StpPolicy
impl Freeze for StpPolicy
impl Move for StpPolicy
impl RefUnwindSafe for StpPolicy
impl Send for StpPolicy
impl Sync for StpPolicy
impl Unpin for StpPolicy
impl UnsafeUnpin for StpPolicy
impl UnwindSafe for StpPolicy
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