#[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 duplicate 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<'py> IntoPyObject<'py> for TradingEvent
impl<'py> IntoPyObject<'py> for TradingEvent
Source§type Target = TradingEvent
type Target = TradingEvent
The Python output type
Source§type Output = Bound<'py, <TradingEvent as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <TradingEvent as IntoPyObject<'py>>::Target>
The smart pointer type to use. Read more
Source§fn into_pyobject(
self,
py: Python<'py>,
) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
Performs the conversion.
Source§impl Ord for TradingEvent
impl Ord for TradingEvent
Source§fn cmp(&self, other: &TradingEvent) -> Ordering
fn cmp(&self, other: &TradingEvent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TradingEvent
impl PartialEq for TradingEvent
Source§impl PartialOrd for TradingEvent
impl PartialOrd for TradingEvent
Source§impl PyClass for TradingEvent
impl PyClass for TradingEvent
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)]
Source§const IS_IMMUTABLE_TYPE: bool = false
const IS_IMMUTABLE_TYPE: bool = false
#[pyclass(immutable_type)]
Source§type ThreadChecker = SendablePyClass<TradingEvent>
type ThreadChecker = SendablePyClass<TradingEvent>
This handles following two situations: Read more
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
Source§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 PyClass__eq__SlotFragment<TradingEvent> for PyClassImplCollector<TradingEvent>
Available on crate feature python only.
impl PyClass__eq__SlotFragment<TradingEvent> for PyClassImplCollector<TradingEvent>
Available on crate feature
python only.Source§impl<'a, 'py> PyFunctionArgument<'a, 'py, false> for &'a TradingEvent
impl<'a, 'py> PyFunctionArgument<'a, 'py, false> for &'a TradingEvent
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py, false> for &'a mut TradingEvent
impl<'a, 'py> PyFunctionArgument<'a, 'py, false> 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
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<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
Returns the safe abstraction over the type object.
Source§impl TryFrom<u16> for TradingEvent
impl TryFrom<u16> for TradingEvent
Source§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
const NAME: &'static str = "TradingEvent"
type Primitive = u16
type Error = TryFromPrimitiveError<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromPyObject<'_> for T
impl<T> FromPyObject<'_> for T
Source§impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
Source§impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
Source§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
Converts
self into an owned Python object, dropping type information.