Enum agnostic_orderbook::state::SelfTradeBehavior [−][src]
pub enum SelfTradeBehavior { DecrementTake, CancelProvide, AbortTransaction, }
Expand description
Describes what happens when two order with identical callback informations are matched together
Variants
The orders are matched together
The order on the provide side is cancelled. Matching for the current order continues and essentially bypasses the self-provided order.
The entire transaction fails and the program returns an error.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SelfTradeBehavior
impl Send for SelfTradeBehavior
impl Sync for SelfTradeBehavior
impl Unpin for SelfTradeBehavior
impl UnwindSafe for SelfTradeBehavior
Blanket Implementations
Mutably borrows from an owned value. Read more