#[repr(C)]pub struct SystemMsg {
pub hd: RecordHeader,
pub msg: [c_char; 303],
pub code: u8,
}Expand description
A non-error message from the Databento Live Subscription Gateway (LSG). Also used for heartbeating.
Fields§
§hd: RecordHeaderThe common header.
msg: [c_char; 303]The message from the Databento Live Subscription Gateway (LSG).
code: u8Type of system message, currently unused.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SystemMsg
impl<'de> Deserialize<'de> for SystemMsg
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> From<&'a SystemMsg> for RecordRefEnum<'a>
impl<'a> From<&'a SystemMsg> for RecordRefEnum<'a>
source§impl From<&SystemMsgV1> for SystemMsgV2
impl From<&SystemMsgV1> for SystemMsgV2
source§fn from(old: &SystemMsgV1) -> Self
fn from(old: &SystemMsgV1) -> Self
Converts to this type from the input type.
source§impl From<SystemMsg> for RecordEnum
impl From<SystemMsg> for RecordEnum
source§impl PartialOrd for SystemMsg
impl PartialOrd for SystemMsg
source§impl PyClassImpl for SystemMsg
impl PyClassImpl for SystemMsg
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<SystemMsg>
type ThreadChecker = SendablePyClass<SystemMsg>
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 dict_offset() -> Option<Py_ssize_t>
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn weaklist_offset() -> Option<isize>
source§impl PyClassNewTextSignature<SystemMsg> for PyClassImplCollector<SystemMsg>
Available on crate feature python only.
impl PyClassNewTextSignature<SystemMsg> for PyClassImplCollector<SystemMsg>
Available on crate feature
python only.fn new_text_signature(self) -> Option<&'static str>
source§impl PyMethods<SystemMsg> for PyClassImplCollector<SystemMsg>
Available on crate feature python only.
impl PyMethods<SystemMsg> for PyClassImplCollector<SystemMsg>
Available on crate feature
python only.fn py_methods(self) -> &'static PyClassItems
source§impl PyTypeInfo for SystemMsg
impl PyTypeInfo for SystemMsg
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 Record for SystemMsg
impl Record for SystemMsg
source§fn header(&self) -> &RecordHeader
fn header(&self) -> &RecordHeader
Returns a reference to the
RecordHeader that comes at the beginning of all
record types.source§fn record_size(&self) -> usize
fn record_size(&self) -> usize
Returns the size of the record in bytes.
source§fn rtype(&self) -> Result<RType>
fn rtype(&self) -> Result<RType>
Tries to convert the raw record type into an enum which is useful for exhaustive
pattern matching. Read more
source§fn publisher(&self) -> Result<Publisher>
fn publisher(&self) -> Result<Publisher>
Tries to convert the raw
publisher_id into an enum which is useful for
exhaustive pattern matching. Read moresource§fn raw_index_ts(&self) -> u64
fn raw_index_ts(&self) -> u64
Returns the raw primary timestamp for the record. Read more
source§fn index_ts(&self) -> Option<OffsetDateTime>
fn index_ts(&self) -> Option<OffsetDateTime>
Returns the primary timestamp for the record. Returns
None if the primary
timestamp contains the sentinel value for a null timestamp. Read moresource§fn index_date(&self) -> Option<Date>
fn index_date(&self) -> Option<Date>
Returns the primary date for the record; the date component of the primary
timestamp (
index_ts()). Returns None if the primary timestamp contains the
sentinel value for a null timestamp.source§impl RecordMut for SystemMsg
impl RecordMut for SystemMsg
source§fn header_mut(&mut self) -> &mut RecordHeader
fn header_mut(&mut self) -> &mut RecordHeader
Returns a mutable reference to the
RecordHeader that comes at the beginning of
all record types.impl Copy for SystemMsg
impl DerefToPyAny for SystemMsg
impl Eq for SystemMsg
impl StructuralPartialEq for SystemMsg
Auto Trait Implementations§
impl Freeze for SystemMsg
impl RefUnwindSafe for SystemMsg
impl Send for SystemMsg
impl Sync for SystemMsg
impl Unpin for SystemMsg
impl UnwindSafe for SystemMsg
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)