Enum dex_v4::state::SelfTradeBehavior
source · #[repr(u64)]
pub enum SelfTradeBehavior {
DecrementTake,
CancelProvide,
AbortTransaction,
}
Expand description
This enum describes different supported behaviors for handling self trading scenarios
Variants
DecrementTake
Decrement take means that both the maker and taker sides of the matched orders are decremented.
This is equivalent to a normal order match, except for the fact that no fees are applies.
CancelProvide
Cancels the maker side of the order.
AbortTransaction
Cancels the whole transaction as soon as a self-matching scenario is encountered.
Trait Implementations
sourceimpl Clone for SelfTradeBehavior
impl Clone for SelfTradeBehavior
sourcefn clone(&self) -> SelfTradeBehavior
fn clone(&self) -> SelfTradeBehavior
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl PartialEq<SelfTradeBehavior> for SelfTradeBehavior
impl PartialEq<SelfTradeBehavior> for SelfTradeBehavior
sourcefn eq(&self, other: &SelfTradeBehavior) -> bool
fn eq(&self, other: &SelfTradeBehavior) -> bool
impl Copy for SelfTradeBehavior
impl StructuralPartialEq for SelfTradeBehavior
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
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more