Skip to main content

Logon

Struct Logon 

Source
pub struct Logon(/* private fields */);
Expand description

The Logon (35=A) message.

Implementations§

Source§

impl Logon

Source

pub const MSG_TYPE: &[u8] = b"A"

Source

pub const KNOWN_TAGS: KnownTags<'static>

Source

pub fn from_raw(raw: RawMessage) -> Self

Source

pub fn raw(&self) -> &RawMessage

Source

pub fn header(&self) -> Header<'_>

Source

pub fn trailer(&self) -> Trailer<'_>

Source

pub fn encrypt_method(&self) -> Result<Option<EncryptMethod>, InvalidValue>

The EncryptMethod (98) field.

Source

pub fn heart_bt_int(&self) -> Result<Option<i64>, InvalidValue>

The HeartBtInt (108) field.

Source

pub fn raw_data_length(&self) -> Result<Option<i64>, InvalidValue>

The RawDataLength (95) field.

Source

pub fn raw_data(&self) -> Option<&[u8]>

The RawData (96) field.

Source

pub fn reset_seq_num_flag(&self) -> Result<Option<bool>, InvalidValue>

The ResetSeqNumFlag (141) field.

Source

pub fn next_expected_msg_seq_num(&self) -> Result<Option<i64>, InvalidValue>

The NextExpectedMsgSeqNum (789) field.

Source

pub fn max_message_size(&self) -> Result<Option<i64>, InvalidValue>

The MaxMessageSize (383) field.

Source

pub fn msg_types(&self) -> Result<Instances<'_, Instance<'_>>, InvalidValue>

The instances of the NoMsgTypes (384) group.

Source

pub fn test_message_indicator(&self) -> Result<Option<bool>, InvalidValue>

The TestMessageIndicator (464) field.

Source

pub fn username(&self) -> Result<Option<&str>, InvalidValue>

The Username (553) field.

Source

pub fn password(&self) -> Result<Option<&str>, InvalidValue>

The Password (554) field.

Trait Implementations§

Source§

impl Debug for Logon

Source§

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

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

impl Display for Logon

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Freeze for Logon

§

impl Forget for Logon

§

impl Move for Logon

§

impl RefUnwindSafe for Logon

§

impl Send for Logon

§

impl Sync for Logon

§

impl Unpin for Logon

§

impl UnsafeUnpin for Logon

§

impl UnwindSafe for Logon

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> 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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.