#[non_exhaustive]#[repr(u8)]pub enum SystemCode {
Heartbeat = 0,
SubscriptionAck = 1,
SlowReaderWarning = 2,
ReplayCompleted = 3,
EndOfInterval = 4,
Unset = 255,
}Expand description
A SystemMsg code indicating the type of message from the live
subscription gateway.
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.
Heartbeat = 0
A message sent in the absence of other records to indicate the connection remains open.
SubscriptionAck = 1
An acknowledgement of a subscription request.
SlowReaderWarning = 2
The gateway has detected this session is falling behind real-time.
ReplayCompleted = 3
Indicates a replay subscription has caught up with real-time data.
EndOfInterval = 4
Signals that all records for interval-based schemas have been published for the given timestamp.
Unset = 255
No system code was specified or this record was upgraded from a version 1 struct where the code field didn’t exist.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for SystemCode
impl AsRef<str> for SystemCode
Source§impl Clone for SystemCode
impl Clone for SystemCode
Source§fn clone(&self) -> SystemCode
fn clone(&self) -> SystemCode
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 SystemCode
impl Debug for SystemCode
Source§impl Default for SystemCode
impl Default for SystemCode
Source§fn default() -> SystemCode
fn default() -> SystemCode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SystemCode
Available on crate feature serde only.
impl<'de> Deserialize<'de> for SystemCode
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SystemCode
impl Display for SystemCode
Source§impl From<SystemCode> for u8
impl From<SystemCode> for u8
Source§fn from(enum_value: SystemCode) -> Self
fn from(enum_value: SystemCode) -> Self
Converts to this type from the input type.
Source§impl FromStr for SystemCode
impl FromStr for SystemCode
Source§impl Hash for SystemCode
impl Hash for SystemCode
Source§impl IntoEnumIterator for SystemCode
impl IntoEnumIterator for SystemCode
type Iterator = SystemCodeIter
fn iter() -> SystemCodeIter ⓘ
Source§impl<'py> IntoPyObject<'py> for SystemCode
impl<'py> IntoPyObject<'py> for SystemCode
Source§type Target = SystemCode
type Target = SystemCode
The Python output type
Source§type Output = Bound<'py, <SystemCode as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <SystemCode 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 SystemCode
impl Ord for SystemCode
Source§fn cmp(&self, other: &SystemCode) -> Ordering
fn cmp(&self, other: &SystemCode) -> 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 SystemCode
impl PartialEq for SystemCode
Source§impl PartialOrd for SystemCode
impl PartialOrd for SystemCode
Source§impl PyClass for SystemCode
impl PyClass for SystemCode
Source§impl PyClassImpl for SystemCode
impl PyClassImpl for SystemCode
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§const RAW_DOC: &'static CStr = /// A [`SystemMsg`](crate::SystemMsg) code indicating the type of message from the live
/// subscription gateway.
const RAW_DOC: &'static CStr = /// A [`SystemMsg`](crate::SystemMsg) code indicating the type of message from the live /// subscription gateway.
Docstring for the class provided on the struct or enum. Read more
Source§const DOC: &'static CStr
const DOC: &'static CStr
Fully rendered class doc, including the
text_signature if a constructor is defined. Read moreSource§type ThreadChecker = SendablePyClass<SystemCode>
type ThreadChecker = SendablePyClass<SystemCode>
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 for SystemCode
Available on crate feature python only.
impl PyClassNewTextSignature for SystemCode
Available on crate feature
python only.const TEXT_SIGNATURE: &'static str = "(value)"
Source§impl PyClass__eq__SlotFragment<SystemCode> for PyClassImplCollector<SystemCode>
Available on crate feature python only.
impl PyClass__eq__SlotFragment<SystemCode> for PyClassImplCollector<SystemCode>
Available on crate feature
python only.Source§impl<'a, 'holder, 'py> PyFunctionArgument<'a, 'holder, 'py, false> for &'holder SystemCode
impl<'a, 'holder, 'py> PyFunctionArgument<'a, 'holder, 'py, false> for &'holder SystemCode
Source§impl<'a, 'holder, 'py> PyFunctionArgument<'a, 'holder, 'py, false> for &'holder mut SystemCode
impl<'a, 'holder, 'py> PyFunctionArgument<'a, 'holder, 'py, false> for &'holder mut SystemCode
Source§impl PyMethods<SystemCode> for PyClassImplCollector<SystemCode>
Available on crate feature python only.
impl PyMethods<SystemCode> for PyClassImplCollector<SystemCode>
Available on crate feature
python only.fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for SystemCode
impl PyTypeInfo for SystemCode
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 Serialize for SystemCode
Available on crate feature serde only.
impl Serialize for SystemCode
Available on crate feature
serde only.Source§impl TryFrom<u8> for SystemCode
impl TryFrom<u8> for SystemCode
Source§type Error = TryFromPrimitiveError<SystemCode>
type Error = TryFromPrimitiveError<SystemCode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for SystemCode
impl TryFromPrimitive for SystemCode
const NAME: &'static str = "SystemCode"
type Primitive = u8
type Error = TryFromPrimitiveError<SystemCode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for SystemCode
impl Eq for SystemCode
impl StructuralPartialEq for SystemCode
Auto Trait Implementations§
impl Freeze for SystemCode
impl RefUnwindSafe for SystemCode
impl Send for SystemCode
impl Sync for SystemCode
impl Unpin for SystemCode
impl UnwindSafe for SystemCode
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.