Enum dbn::enums::TradingEvent
source · #[non_exhaustive]#[repr(u16)]pub enum TradingEvent {
None = 0,
NoCancel = 1,
ChangeTradingSession = 2,
ImpliedMatchingOn = 3,
ImpliedMatchingOff = 4,
}
Expand description
Further information about a status update.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None = 0
No additional information given.
NoCancel = 1
Order entry and modification are not allowed.
ChangeTradingSession = 2
A change of trading session occurred. Daily statistics are reset.
ImpliedMatchingOn = 3
Implied matching is available.
ImpliedMatchingOff = 4
Implied matching is not available.
Trait Implementations§
source§impl Clone for TradingEvent
impl Clone for TradingEvent
source§fn clone(&self) -> TradingEvent
fn clone(&self) -> TradingEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TradingEvent
impl Debug for TradingEvent
source§impl Default for TradingEvent
impl Default for TradingEvent
source§fn default() -> TradingEvent
fn default() -> TradingEvent
Returns the “default value” for a type. Read more
source§impl From<TradingEvent> for u16
impl From<TradingEvent> for u16
source§fn from(enum_value: TradingEvent) -> Self
fn from(enum_value: TradingEvent) -> Self
Converts to this type from the input type.
source§impl Hash for TradingEvent
impl Hash for TradingEvent
source§impl IntoEnumIterator for TradingEvent
impl IntoEnumIterator for TradingEvent
type Iterator = TradingEventIter
fn iter() -> TradingEventIter ⓘ
source§impl PartialEq for TradingEvent
impl PartialEq for TradingEvent
source§fn eq(&self, other: &TradingEvent) -> bool
fn eq(&self, other: &TradingEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PyClassImpl for TradingEvent
impl PyClassImpl for TradingEvent
source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
§type ThreadChecker = SendablePyClass<TradingEvent>
type ThreadChecker = SendablePyClass<TradingEvent>
This handles following two situations: Read more
§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
source§impl PyClassNewTextSignature<TradingEvent> for PyClassImplCollector<TradingEvent>
Available on crate feature python
only.
impl PyClassNewTextSignature<TradingEvent> for PyClassImplCollector<TradingEvent>
Available on crate feature
python
only.fn new_text_signature(self) -> Option<&'static str>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a TradingEvent
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a TradingEvent
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut TradingEvent
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut TradingEvent
source§impl PyMethods<TradingEvent> for PyClassImplCollector<TradingEvent>
Available on crate feature python
only.
impl PyMethods<TradingEvent> for PyClassImplCollector<TradingEvent>
Available on crate feature
python
only.fn py_methods(self) -> &'static PyClassItems
source§impl PyTypeInfo for TradingEvent
impl PyTypeInfo for TradingEvent
§type AsRefTarget = PyCell<TradingEvent>
type AsRefTarget = PyCell<TradingEvent>
Utility type to make Py::as_ref work.
source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type or a subclass of this type.source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type.source§impl TryFrom<u16> for TradingEvent
impl TryFrom<u16> for TradingEvent
§type Error = TryFromPrimitiveError<TradingEvent>
type Error = TryFromPrimitiveError<TradingEvent>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for TradingEvent
impl TryFromPrimitive for TradingEvent
type Primitive = u16
type Error = TryFromPrimitiveError<TradingEvent>
const NAME: &'static str = "TradingEvent"
fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for TradingEvent
impl Eq for TradingEvent
impl StructuralPartialEq for TradingEvent
Auto Trait Implementations§
impl Freeze for TradingEvent
impl RefUnwindSafe for TradingEvent
impl Send for TradingEvent
impl Sync for TradingEvent
impl Unpin for TradingEvent
impl UnwindSafe for TradingEvent
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