Skip to main content

SessionConfig

Struct SessionConfig 

Source
pub struct SessionConfig {
Show 38 fields pub session_id: SessionId, pub connection_type: ConnectionType, pub heart_bt_int: Duration, pub heart_bt_int_override: Option<Duration>, pub socket_connect_host: String, pub socket_connect_port: u16, pub socket_accept_port: u16, pub reconnect_interval: Duration, pub logon_timeout: Duration, pub logout_timeout: Duration, pub reset_on_logon: bool, pub reset_on_logout: bool, pub reset_on_disconnect: bool, pub refresh_on_logon: bool, pub send_reset_seq_num_flag: bool, pub persist_messages: bool, pub check_comp_id: bool, pub check_latency: bool, pub max_latency: Duration, pub send_redundant_resend_requests: bool, pub timestamp_precision: TimestampPrecision, pub validate_length_checksum: bool, pub use_data_dictionary: bool, pub data_dictionary: Option<String>, pub transport_data_dictionary: Option<String>, pub app_data_dictionary: Option<String>, pub validation: ValidationSettings, pub enable_last_msg_seq_num_processed: bool, pub max_messages_in_resend_request: u64, pub send_logout_before_disconnect_from_timeout: bool, pub requires_orig_sending_time: bool, pub send_next_expected_msg_seq_num: bool, pub tls: TlsSettings, pub schedule: Schedule, pub logon_schedule: Schedule, pub file_store_path: Option<String>, pub file_log_path: Option<String>, pub default_appl_ver_id: Option<String>,
}

Fields§

§session_id: SessionId§connection_type: ConnectionType§heart_bt_int: Duration

Negotiated heartbeat interval. Required for initiators; acceptors adopt the initiator’s value unless HeartBtIntOverride is set.

§heart_bt_int_override: Option<Duration>§socket_connect_host: String§socket_connect_port: u16§socket_accept_port: u16§reconnect_interval: Duration§logon_timeout: Duration§logout_timeout: Duration§reset_on_logon: bool§reset_on_logout: bool§reset_on_disconnect: bool§refresh_on_logon: bool§send_reset_seq_num_flag: bool

Send ResetSeqNumFlag(141)=Y on our Logon.

§persist_messages: bool§check_comp_id: bool§check_latency: bool§max_latency: Duration§send_redundant_resend_requests: bool§timestamp_precision: TimestampPrecision§validate_length_checksum: bool§use_data_dictionary: bool§data_dictionary: Option<String>§transport_data_dictionary: Option<String>

FIXT sessions: session-level dictionary (FIXT11.xml).

§app_data_dictionary: Option<String>

FIXT sessions: application-level dictionary (FIX50.xml etc).

§validation: ValidationSettings§enable_last_msg_seq_num_processed: bool

Stamp LastMsgSeqNumProcessed(369) on every outgoing header.

§max_messages_in_resend_request: u64

Cap ResendRequests to this many messages per chunk (0 = unlimited, EndSeqNo sent as 0/999999 “infinity”).

§send_logout_before_disconnect_from_timeout: bool

Send a Logout before disconnecting on heartbeat timeout.

§requires_orig_sending_time: bool

Require OrigSendingTime(122) on PossDup messages (default Y).

§send_next_expected_msg_seq_num: bool

Negotiate sequence recovery via NextExpectedMsgSeqNum(789) on the Logon handshake (C++ SendNextExpectedMsgSeqNum, go EnableNextExpectedMsgSeqNum). Default off, like both references.

§tls: TlsSettings

TLS transport settings (go-style Socket* keys). See TlsSettings.

§schedule: Schedule

When the session is active and resets (StartTime/EndTime, StartDay/EndDay, NonStopSession, UseLocalTime). Non-stop by default (no times configured).

§logon_schedule: Schedule

When logons are accepted (LogonTime/LogoutTime, LogonDay/LogoutDay); defaults to the session schedule.

§file_store_path: Option<String>§file_log_path: Option<String>§default_appl_ver_id: Option<String>

FIXT.1.1 sessions: DefaultApplVerID(1137) for our Logon.

Implementations§

Trait Implementations§

Source§

impl Clone for SessionConfig

Source§

fn clone(&self) -> SessionConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for SessionConfig

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more