Struct dbn::compat::SystemMsgV1
source · #[repr(C)]pub struct SystemMsgV1 {
pub hd: RecordHeader,
pub msg: [c_char; 64],
}Expand description
A non-error message from the Databento Live Subscription Gateway (LSG) in DBN version 1. Also used for heartbeating.
Fields§
§hd: RecordHeaderThe common header.
msg: [c_char; 64]The message from the Databento Live Subscription Gateway (LSG).
Implementations§
Trait Implementations§
source§impl AsRef<[u8]> for SystemMsgV1
impl AsRef<[u8]> for SystemMsgV1
source§impl Clone for SystemMsgV1
impl Clone for SystemMsgV1
source§fn clone(&self) -> SystemMsgV1
fn clone(&self) -> SystemMsgV1
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 SystemMsgV1
impl Debug for SystemMsgV1
source§impl Default for SystemMsgV1
impl Default for SystemMsgV1
source§impl<'de> Deserialize<'de> for SystemMsgV1
impl<'de> Deserialize<'de> for SystemMsgV1
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 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 HasRType for SystemMsgV1
impl HasRType for SystemMsgV1
source§impl Hash for SystemMsgV1
impl Hash for SystemMsgV1
source§impl PartialEq for SystemMsgV1
impl PartialEq for SystemMsgV1
source§fn eq(&self, other: &SystemMsgV1) -> bool
fn eq(&self, other: &SystemMsgV1) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for SystemMsgV1
impl PartialOrd for SystemMsgV1
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl PyClassImpl for SystemMsgV1
impl PyClassImpl for SystemMsgV1
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<SystemMsgV1>
type ThreadChecker = SendablePyClass<SystemMsgV1>
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 dict_offset() -> Option<Py_ssize_t>
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn weaklist_offset() -> Option<isize>
source§impl PyClassNewTextSignature<SystemMsgV1> for PyClassImplCollector<SystemMsgV1>
Available on crate feature python only.
impl PyClassNewTextSignature<SystemMsgV1> for PyClassImplCollector<SystemMsgV1>
Available on crate feature
python only.fn new_text_signature(self) -> Option<&'static str>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a SystemMsgV1
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a SystemMsgV1
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut SystemMsgV1
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut SystemMsgV1
source§impl PyMethods<SystemMsgV1> for PyClassImplCollector<SystemMsgV1>
Available on crate feature python only.
impl PyMethods<SystemMsgV1> for PyClassImplCollector<SystemMsgV1>
Available on crate feature
python only.fn py_methods(self) -> &'static PyClassItems
source§impl PyTypeInfo for SystemMsgV1
impl PyTypeInfo for SystemMsgV1
§type AsRefTarget = PyCell<SystemMsgV1>
type AsRefTarget = PyCell<SystemMsgV1>
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 Record for SystemMsgV1
impl Record for SystemMsgV1
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 SystemMsgV1
impl RecordMut for SystemMsgV1
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.source§impl Serialize for SystemMsgV1
impl Serialize for SystemMsgV1
impl Copy for SystemMsgV1
impl Eq for SystemMsgV1
impl StructuralPartialEq for SystemMsgV1
Auto Trait Implementations§
impl RefUnwindSafe for SystemMsgV1
impl Send for SystemMsgV1
impl Sync for SystemMsgV1
impl Unpin for SystemMsgV1
impl UnwindSafe for SystemMsgV1
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