#[repr(C)]pub struct ErrorMsg {
pub hd: RecordHeader,
pub err: [c_char; 302],
pub code: u8,
pub is_last: u8,
}
Expand description
An error message from the Databento Live Subscription Gateway (LSG).
Fields§
§hd: RecordHeader
The common header.
err: [c_char; 302]
The error message.
code: u8
The error code. Currently unused.
is_last: u8
Sometimes multiple errors are sent together. This field will be non-zero for the last error.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for ErrorMsg
impl<'de> Deserialize<'de> for ErrorMsg
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 ErrorMsg> for RecordRefEnum<'a>
impl<'a> From<&'a ErrorMsg> for RecordRefEnum<'a>
source§impl From<&ErrorMsgV1> for ErrorMsgV2
impl From<&ErrorMsgV1> for ErrorMsgV2
source§fn from(old: &ErrorMsgV1) -> Self
fn from(old: &ErrorMsgV1) -> Self
Converts to this type from the input type.
source§impl From<ErrorMsg> for RecordEnum
impl From<ErrorMsg> for RecordEnum
source§impl PartialEq for ErrorMsg
impl PartialEq for ErrorMsg
source§impl PartialOrd for ErrorMsg
impl PartialOrd for ErrorMsg
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 ErrorMsg
impl PyClassImpl for ErrorMsg
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<ErrorMsg>
type ThreadChecker = SendablePyClass<ErrorMsg>
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<ErrorMsg> for PyClassImplCollector<ErrorMsg>
Available on crate feature python
only.
impl PyClassNewTextSignature<ErrorMsg> for PyClassImplCollector<ErrorMsg>
Available on crate feature
python
only.fn new_text_signature(self) -> Option<&'static str>
source§impl PyMethods<ErrorMsg> for PyClassImplCollector<ErrorMsg>
Available on crate feature python
only.
impl PyMethods<ErrorMsg> for PyClassImplCollector<ErrorMsg>
Available on crate feature
python
only.fn py_methods(self) -> &'static PyClassItems
source§impl PyTypeInfo for ErrorMsg
impl PyTypeInfo for ErrorMsg
§type AsRefTarget = PyCell<ErrorMsg>
type AsRefTarget = PyCell<ErrorMsg>
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 ErrorMsg
impl Record for ErrorMsg
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 ErrorMsg
impl RecordMut for ErrorMsg
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 ErrorMsg
impl Eq for ErrorMsg
impl StructuralPartialEq for ErrorMsg
Auto Trait Implementations§
impl Freeze for ErrorMsg
impl RefUnwindSafe for ErrorMsg
impl Send for ErrorMsg
impl Sync for ErrorMsg
impl Unpin for ErrorMsg
impl UnwindSafe for ErrorMsg
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