Enum ClobPairStatus
#[repr(i32)]pub enum ClobPairStatus {
Unspecified = 0,
Active = 1,
Paused = 2,
CancelOnly = 3,
PostOnly = 4,
Initializing = 5,
FinalSettlement = 6,
}Expand description
Status of the CLOB. Defined in clob.clob_pair
Variants§
Unspecified = 0
Default value. This value is invalid and unused.
Active = 1
CLOB_PAIR_STATUS_ACTIVE behavior is unfinalized. TODO(DEC-600): update this documentation.
Paused = 2
CLOB_PAIR_STATUS_PAUSED behavior is unfinalized. TODO(DEC-600): update this documentation.
CancelOnly = 3
CLOB_PAIR_STATUS_CANCEL_ONLY behavior is unfinalized. TODO(DEC-600): update this documentation.
PostOnly = 4
CLOB_PAIR_STATUS_POST_ONLY behavior is unfinalized. TODO(DEC-600): update this documentation.
Initializing = 5
CLOB_PAIR_STATUS_INITIALIZING represents a newly-added clob pair. Clob pairs in this state only accept orders which are both short-term and post-only.
FinalSettlement = 6
CLOB_PAIR_STATUS_FINAL_SETTLEMENT represents a clob pair that has been deactivated. Clob pairs in this state do not accept new orders and trading is blocked. All open positions are closed and open stateful orders canceled by the protocol when the clob pair transitions to this status. All short-term orders are left to expire.
Implementations§
§impl ClobPairStatus
impl ClobPairStatus
§impl ClobPairStatus
impl ClobPairStatus
pub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn from_str_name(value: &str) -> Option<ClobPairStatus>
pub fn from_str_name(value: &str) -> Option<ClobPairStatus>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
§impl Clone for ClobPairStatus
impl Clone for ClobPairStatus
§fn clone(&self) -> ClobPairStatus
fn clone(&self) -> ClobPairStatus
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for ClobPairStatus
impl Debug for ClobPairStatus
§impl Default for ClobPairStatus
impl Default for ClobPairStatus
§fn default() -> ClobPairStatus
fn default() -> ClobPairStatus
§impl Hash for ClobPairStatus
impl Hash for ClobPairStatus
§impl Ord for ClobPairStatus
impl Ord for ClobPairStatus
§impl PartialEq for ClobPairStatus
impl PartialEq for ClobPairStatus
§impl PartialOrd for ClobPairStatus
impl PartialOrd for ClobPairStatus
§impl TryFrom<i32> for ClobPairStatus
impl TryFrom<i32> for ClobPairStatus
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
§fn try_from(value: i32) -> Result<ClobPairStatus, UnknownEnumValue>
fn try_from(value: i32) -> Result<ClobPairStatus, UnknownEnumValue>
impl Copy for ClobPairStatus
impl Eq for ClobPairStatus
impl StructuralPartialEq for ClobPairStatus
Auto Trait Implementations§
impl Freeze for ClobPairStatus
impl RefUnwindSafe for ClobPairStatus
impl Send for ClobPairStatus
impl Sync for ClobPairStatus
impl Unpin for ClobPairStatus
impl UnwindSafe for ClobPairStatus
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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
§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
key and return true if they are equal.§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
§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>
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>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].