#[repr(i32)]pub enum GridLimitEvent {
Ignore = 1,
CloseAtLast = 2,
Unknown(i32),
}Expand description
Action taken when a grid boundary is reached (wire: i32).
Variants§
Ignore = 1
Ignore — keep the grid running
CloseAtLast = 2
Close the position at the last price
Unknown(i32)
Unknown value, preserved verbatim
Trait Implementations§
Source§impl Clone for GridLimitEvent
impl Clone for GridLimitEvent
Source§fn clone(&self) -> GridLimitEvent
fn clone(&self) -> GridLimitEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GridLimitEvent
Source§impl Debug for GridLimitEvent
impl Debug for GridLimitEvent
Source§impl Default for GridLimitEvent
impl Default for GridLimitEvent
Source§impl<'de> Deserialize<'de> for GridLimitEvent
impl<'de> Deserialize<'de> for GridLimitEvent
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GridLimitEvent
Source§impl From<GridLimitEvent> for i32
impl From<GridLimitEvent> for i32
Source§fn from(enum_value: GridLimitEvent) -> Self
fn from(enum_value: GridLimitEvent) -> Self
Converts to this type from the input type.
Source§impl From<i32> for GridLimitEvent
impl From<i32> for GridLimitEvent
Source§impl FromPrimitive for GridLimitEvent
impl FromPrimitive for GridLimitEvent
Source§impl Hash for GridLimitEvent
impl Hash for GridLimitEvent
Source§impl PartialEq for GridLimitEvent
impl PartialEq for GridLimitEvent
Source§fn eq(&self, other: &GridLimitEvent) -> bool
fn eq(&self, other: &GridLimitEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GridLimitEvent
impl Serialize for GridLimitEvent
impl StructuralPartialEq for GridLimitEvent
Auto Trait Implementations§
impl Freeze for GridLimitEvent
impl RefUnwindSafe for GridLimitEvent
impl Send for GridLimitEvent
impl Sync for GridLimitEvent
impl Unpin for GridLimitEvent
impl UnsafeUnpin for GridLimitEvent
impl UnwindSafe for GridLimitEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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