#[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
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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
Source§impl<'de> Deserialize<'de> for SystemCode
Available on crate feature serde only.
impl<'de> Deserialize<'de> for SystemCode
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>
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
Source§impl<'a, 'py> FromPyObject<'a, 'py> for SystemCodewhere
Self: Clone,
impl<'a, 'py> FromPyObject<'a, 'py> for SystemCodewhere
Self: Clone,
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
Source§type Output = Bound<'py, <SystemCode as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <SystemCode as IntoPyObject<'py>>::Target>
Source§fn into_pyobject(
self,
py: Python<'py>,
) -> Result<<Self as IntoPyObject<'py>>::Output, <Self as IntoPyObject<'py>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'py>>::Output, <Self as IntoPyObject<'py>>::Error>
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,
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
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
Source§const IS_IMMUTABLE_TYPE: bool = false
const IS_IMMUTABLE_TYPE: bool = false
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.
Source§const DOC: &'static CStr
const DOC: &'static CStr
text_signature if a constructor is defined. Read moreSource§type Layout = <<SystemCode as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<SystemCode>
type Layout = <<SystemCode as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<SystemCode>
Source§type ThreadChecker = NoopThreadChecker
type ThreadChecker = NoopThreadChecker
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
Source§fn dict_offset() -> Option<PyObjectOffset>
fn dict_offset() -> Option<PyObjectOffset>
Source§fn weaklist_offset() -> Option<PyObjectOffset>
fn weaklist_offset() -> Option<PyObjectOffset>
Source§impl PyClassNewTextSignature for SystemCode
Available on crate feature python only.
impl PyClassNewTextSignature for SystemCode
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>
python only.Source§impl PyMethods<SystemCode> for PyClassImplCollector<SystemCode>
Available on crate feature python only.
impl PyMethods<SystemCode> for PyClassImplCollector<SystemCode>
python only.fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for SystemCode
impl PyTypeInfo for SystemCode
Source§const NAME: &str = <Self as ::pyo3::PyClass>::NAME
const NAME: &str = <Self as ::pyo3::PyClass>::NAME
prefer using ::type_object(py).name() to get the correct runtime value
Source§const MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
const MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
prefer using ::type_object(py).module() to get the correct runtime value
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Source§fn type_object(py: Python<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
Source§impl Serialize for SystemCode
Available on crate feature serde only.
impl Serialize for SystemCode
serde only.Source§impl TryFrom<u8> for SystemCode
impl TryFrom<u8> for SystemCode
Source§type Error = TryFromPrimitiveError<SystemCode>
type Error = TryFromPrimitiveError<SystemCode>
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>>
Source§impl WritePyRepr for SystemCode
Available on crate feature python only.
impl WritePyRepr for SystemCode
python only.Source§fn write_py_repr(&self, s: &mut String) -> Result
fn write_py_repr(&self, s: &mut String) -> Result
s. Read moreSource§const SHOULD_FLATTEN: bool = false
const SHOULD_FLATTEN: bool = false
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
self into an owned Python object, dropping type information.Source§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
Source§impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
Source§const NAME: &'static str = T::NAME
const NAME: &'static str = T::NAME
Use ::classinfo_object() instead and format the type name at runtime. Note that using built-in cast features is often better than manual PyTypeCheck usage.