Struct MessageStart

Source
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>

Source§

fn clone(&self) -> MessageStart<'i>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'i> Debug for MessageStart<'i>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'i> PartialEq for MessageStart<'i>

Source§

fn eq(&self, other: &MessageStart<'i>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'i> Eq for MessageStart<'i>

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.