#[repr(u8)]pub enum Action {
Modify = 77,
Trade = 84,
Fill = 70,
Cancel = 67,
Add = 65,
Clear = 82,
}Expand description
Variants§
Modify = 77
An existing order was modified: price and/or size.
Trade = 84
An aggressing order traded. Does not affect the book.
Fill = 70
An existing order was filled. Does not affect the book.
Cancel = 67
An order was fully or partially cancelled.
Add = 65
A new order was added to the book.
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
Available on non-crate feature
gil-refs only.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
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_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
Returns the safe abstraction over the type object.
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)