#[repr(C)]pub struct ErrorMsgV1 {
pub hd: RecordHeader,
pub err: [c_char; 64],
}Expand description
An error message from the Databento Live Subscription Gateway (LSG) in DBN version 1.
Fields§
§hd: RecordHeaderThe common header.
err: [c_char; 64]The error message.
Implementations§
Trait Implementations§
Source§impl AsRef<[u8]> for ErrorMsgV1
impl AsRef<[u8]> for ErrorMsgV1
Source§impl Clone for ErrorMsgV1
impl Clone for ErrorMsgV1
Source§fn clone(&self) -> ErrorMsgV1
fn clone(&self) -> ErrorMsgV1
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ErrorMsgV1
Source§impl Debug for ErrorMsgV1
impl Debug for ErrorMsgV1
Source§impl<'de> Deserialize<'de> for ErrorMsgV1
impl<'de> Deserialize<'de> for ErrorMsgV1
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
impl Eq for ErrorMsgV1
Source§impl From<&ErrorMsgV1> for ErrorMsg
impl From<&ErrorMsgV1> for ErrorMsg
Source§impl HasRType for ErrorMsgV1
impl HasRType for ErrorMsgV1
Source§impl Hash for ErrorMsgV1
impl Hash for ErrorMsgV1
Source§impl<'py> IntoPyObject<'py> for ErrorMsg
Available on crate feature python only.Convert bare v1::ErrorMsg to Python by wrapping with UNDEF_TIMESTAMP for ts_out.
impl<'py> IntoPyObject<'py> for ErrorMsg
Available on crate feature
python only.Convert bare v1::ErrorMsg to Python by wrapping with UNDEF_TIMESTAMP for ts_out.
Source§impl PartialEq for ErrorMsgV1
impl PartialEq for ErrorMsgV1
Source§fn eq(&self, other: &ErrorMsgV1) -> bool
fn eq(&self, other: &ErrorMsgV1) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ErrorMsgV1
impl PartialOrd for ErrorMsgV1
Source§impl Record for ErrorMsgV1
impl Record for ErrorMsgV1
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 ErrorMsgV1
impl RecordMut for ErrorMsgV1
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 ErrorMsgV1
impl Serialize for ErrorMsgV1
impl StructuralPartialEq for ErrorMsgV1
Source§impl WritePyRepr for ErrorMsgV1
Available on crate feature python only.
impl WritePyRepr for ErrorMsgV1
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.
Auto Trait Implementations§
impl Freeze for ErrorMsgV1
impl RefUnwindSafe for ErrorMsgV1
impl Send for ErrorMsgV1
impl Sync for ErrorMsgV1
impl Unpin for ErrorMsgV1
impl UnsafeUnpin for ErrorMsgV1
impl UnwindSafe for ErrorMsgV1
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,
impl<T> DbnEncodable for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.