Struct easyfix_session::settings::Settings
source · pub struct Settings {
pub host: IpAddr,
pub port: u16,
pub sender_comp_id: FixString,
pub sender_sub_id: Option<FixString>,
pub heartbeat_interval: Duration,
pub auto_disconnect_after_no_logon_received: Duration,
pub auto_disconnect_after_no_heartbeat: u32,
}Expand description
FIX Trading Port session configuration.
Fields§
§host: IpAddrIP address
port: u16Port number
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: DurationTimeout [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.
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.
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 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