Enum dbn::enums::StatUpdateAction
source · #[repr(u8)]pub enum StatUpdateAction {
New = 1,
Delete = 2,
}
Expand description
The type of StatMsg
update.
Variants§
Trait Implementations§
source§impl Clone for StatUpdateAction
impl Clone for StatUpdateAction
source§fn clone(&self) -> StatUpdateAction
fn clone(&self) -> StatUpdateAction
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 StatUpdateAction
impl Debug for StatUpdateAction
source§impl From<StatUpdateAction> for u8
impl From<StatUpdateAction> for u8
source§fn from(enum_value: StatUpdateAction) -> Self
fn from(enum_value: StatUpdateAction) -> Self
Converts to this type from the input type.
source§impl Hash for StatUpdateAction
impl Hash for StatUpdateAction
source§impl IntoEnumIterator for StatUpdateAction
impl IntoEnumIterator for StatUpdateAction
type Iterator = StatUpdateActionIter
fn iter() -> StatUpdateActionIter ⓘ
source§impl PartialEq for StatUpdateAction
impl PartialEq for StatUpdateAction
source§fn eq(&self, other: &StatUpdateAction) -> bool
fn eq(&self, other: &StatUpdateAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PyClass for StatUpdateAction
impl PyClass for StatUpdateAction
source§impl PyClassImpl for StatUpdateAction
impl PyClassImpl for StatUpdateAction
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<StatUpdateAction>
type ThreadChecker = SendablePyClass<StatUpdateAction>
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<'a, 'py> PyFunctionArgument<'a, 'py> for &'a StatUpdateAction
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a StatUpdateAction
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut StatUpdateAction
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut StatUpdateAction
source§impl PyTypeInfo for StatUpdateAction
impl PyTypeInfo for StatUpdateAction
§type AsRefTarget = PyCell<StatUpdateAction>
type AsRefTarget = PyCell<StatUpdateAction>
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 StatUpdateAction
impl TryFrom<u8> for StatUpdateAction
§type Error = TryFromPrimitiveError<StatUpdateAction>
type Error = TryFromPrimitiveError<StatUpdateAction>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for StatUpdateAction
impl TryFromPrimitive for StatUpdateAction
type Primitive = u8
type Error = TryFromPrimitiveError<StatUpdateAction>
const NAME: &'static str = "StatUpdateAction"
fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for StatUpdateAction
impl Eq for StatUpdateAction
impl StructuralPartialEq for StatUpdateAction
Auto Trait Implementations§
impl Freeze for StatUpdateAction
impl RefUnwindSafe for StatUpdateAction
impl Send for StatUpdateAction
impl Sync for StatUpdateAction
impl Unpin for StatUpdateAction
impl UnwindSafe for StatUpdateAction
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