pub struct Settings {
pub sender_comp_id: FixString,
pub sender_sub_id: Option<FixString>,
pub heartbeat_interval: Option<u64>,
pub auto_disconnect_after_no_logon_received: Duration,
pub auto_disconnect_after_no_heartbeat: u32,
pub auto_disconnect_after_no_logout: Duration,
}Expand description
FIX Trading Port session configuration.
Fields§
§sender_comp_id: FixStringFIX SenderCompID<49> field value for outgoing messages.
sender_sub_id: Option<FixString>FIX SenderSubID<50> field value for outgoing messages.
heartbeat_interval: Option<u64>Timeout [s] for inbound/outbound messages. When reached, TestRequest<1>
is sent when inbound message is missing or Heartbeat<0> is sent when
outbound message is missing. If not set value from Logon will be used.
auto_disconnect_after_no_logon_received: DurationTimeout [s] for Logon<A> message, when reached, connection is dropped.
auto_disconnect_after_no_heartbeat: u32How many times TestRequest<1> is sent when inbound timeout is reached,
before connection is dropped.
auto_disconnect_after_no_logout: DurationTimeout for waiting for Logout<5> acknowledgment during graceful session termination. If exceeded, the session terminates forcefully.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Settings
impl<'de> Deserialize<'de> for Settings
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
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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