pub struct MessageStart<'i> {
pub transaction_id: OctetStr<'i>,
pub group_no: u8,
pub abort_on_error: u8,
pub message_body: MessageBody<'i>,
}
Expand description
Contains the start of an SML message.
For message types that have a known size (e.g. OpenResponse
), the MessageStart
type
contains the whole message. For messages with dynamic size (e.g. GetListResponse
), the
MessageStart
type only contains the data read until the start of the dynamically-sized
data. The dynamically-sized elements (ListEntry
in the case of GetListResponse
) are
returned as separate events by the parser. For some message types (e.g. GetListResponse
),
there’s a separate event produced when the message has been parsed completely
(GetListResponseEnd
in case of GetListResponse
).
Fields§
§transaction_id: OctetStr<'i>
transaction identifier
group_no: u8
allows grouping of SML messages
abort_on_error: u8
describes how to handle the Message in case of errors
message_body: MessageBody<'i>
main content of the message
Trait Implementations§
Source§impl<'i> Clone for MessageStart<'i>
impl<'i> Clone for MessageStart<'i>
Source§fn clone(&self) -> MessageStart<'i>
fn clone(&self) -> MessageStart<'i>
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<'i> Debug for MessageStart<'i>
impl<'i> Debug for MessageStart<'i>
Source§impl<'i> PartialEq for MessageStart<'i>
impl<'i> PartialEq for MessageStart<'i>
impl<'i> Eq for MessageStart<'i>
impl<'i> StructuralPartialEq for MessageStart<'i>
Auto Trait Implementations§
impl<'i> Freeze for MessageStart<'i>
impl<'i> RefUnwindSafe for MessageStart<'i>
impl<'i> Send for MessageStart<'i>
impl<'i> Sync for MessageStart<'i>
impl<'i> Unpin for MessageStart<'i>
impl<'i> UnwindSafe for MessageStart<'i>
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