#[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 gateway.
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 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 SystemMsgV1
impl Debug 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 SystemMsg
impl From<&SystemMsgV1> for SystemMsg
Source§impl HasRType for SystemMsgV1
impl HasRType for SystemMsgV1
Source§impl Hash for SystemMsgV1
impl Hash for SystemMsgV1
Source§impl<'py> IntoPyObject<'py> for SystemMsg
Available on crate feature python only.Convert bare v1::SystemMsg to Python by wrapping with UNDEF_TIMESTAMP for ts_out.
impl<'py> IntoPyObject<'py> for SystemMsg
Available on crate feature
python only.Convert bare v1::SystemMsg to Python by wrapping with UNDEF_TIMESTAMP for ts_out.
Source§impl PartialEq for SystemMsgV1
impl PartialEq for SystemMsgV1
Source§impl PartialOrd for SystemMsgV1
impl PartialOrd for SystemMsgV1
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
Source§impl WritePyRepr for SystemMsgV1
Available on crate feature python only.
impl WritePyRepr for SystemMsgV1
Available on crate feature
python only.Source§fn write_py_repr(&self, s: &mut String) -> Result
fn write_py_repr(&self, s: &mut String) -> Result
Writes a Python-style string representation to
s. Read moreSource§const SHOULD_FLATTEN: bool = false
const SHOULD_FLATTEN: bool = false
Whether this type’s fields should be flattened into the parent repr.
impl Copy for SystemMsgV1
impl Eq for SystemMsgV1
impl StructuralPartialEq for SystemMsgV1
Auto Trait Implementations§
impl Freeze for SystemMsgV1
impl RefUnwindSafe for SystemMsgV1
impl Send for SystemMsgV1
impl Sync for SystemMsgV1
impl Unpin for SystemMsgV1
impl UnsafeUnpin 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
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>
Converts
self into an owned Python object, dropping type information.