#[repr(u8)]pub enum Action {
Modify = 77,
Trade = 84,
Fill = 70,
Cancel = 67,
Add = 65,
Clear = 82,
}
Expand description
A tick action.
Variants§
Modify = 77
An existing order was modified.
Trade = 84
A trade executed.
Fill = 70
An existing order was filled.
Cancel = 67
An order was cancelled.
Add = 65
A new order was added.
Clear = 82
Reset the book; clear all orders for an instrument.
Trait Implementations§
source§impl IntoEnumIterator for Action
impl IntoEnumIterator for Action
type Iterator = ActionIter
fn iter() -> ActionIter ⓘ
source§impl PartialEq for Action
impl PartialEq for Action
source§impl PyClassImpl for Action
impl PyClassImpl for Action
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<Action>
type ThreadChecker = SendablePyClass<Action>
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<Action> for PyClassImplCollector<Action>
Available on crate feature python
only.
impl PyClassNewTextSignature<Action> for PyClassImplCollector<Action>
Available on crate feature
python
only.fn new_text_signature(self) -> Option<&'static str>
source§impl PyMethods<Action> for PyClassImplCollector<Action>
Available on crate feature python
only.
impl PyMethods<Action> for PyClassImplCollector<Action>
Available on crate feature
python
only.fn py_methods(self) -> &'static PyClassItems
source§impl PyTypeInfo for Action
impl PyTypeInfo for Action
§type AsRefTarget = PyCell<Action>
type AsRefTarget = PyCell<Action>
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<u8> for Action
impl TryFrom<u8> for Action
§type Error = TryFromPrimitiveError<Action>
type Error = TryFromPrimitiveError<Action>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for Action
impl TryFromPrimitive for Action
impl Copy for Action
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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