pub enum HaltAction {
Halt,
HaltAndCloseAll,
}Expand description
What a kill switch does when it trips.
Variants§
Halt
Reject new exposure and cancel pending orders.
HaltAndCloseAll
Also close every open position at the next quote.
Trait Implementations§
Source§impl Clone for HaltAction
impl Clone for HaltAction
impl Copy for HaltAction
Source§impl Debug for HaltAction
impl Debug for HaltAction
Source§impl<'de> Deserialize<'de> for HaltAction
impl<'de> Deserialize<'de> for HaltAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HaltAction
Source§impl PartialEq for HaltAction
impl PartialEq for HaltAction
Source§impl Serialize for HaltAction
impl Serialize for HaltAction
impl StructuralPartialEq for HaltAction
Auto Trait Implementations§
impl Freeze for HaltAction
impl RefUnwindSafe for HaltAction
impl Send for HaltAction
impl Sync for HaltAction
impl Unpin for HaltAction
impl UnsafeUnpin for HaltAction
impl UnwindSafe for HaltAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.