pub struct FixSessionConfig {
pub version: FixVersion,
pub sender_comp_id: String,
pub target_comp_id: String,
pub host: String,
pub port: u16,
pub heartbeat_interval: u32,
pub enable_logging: bool,
}Expand description
FIX session configuration.
Fields§
§version: FixVersionFIX protocol version.
sender_comp_id: StringSender CompID.
target_comp_id: StringTarget CompID.
host: StringHost address.
port: u16Port number.
heartbeat_interval: u32Heartbeat interval in seconds.
enable_logging: boolEnable message logging.
Implementations§
Source§impl FixSessionConfig
impl FixSessionConfig
Sourcepub fn new(
sender_comp_id: &str,
target_comp_id: &str,
host: &str,
port: u16,
) -> FixSessionConfig
pub fn new( sender_comp_id: &str, target_comp_id: &str, host: &str, port: u16, ) -> FixSessionConfig
Create new FIX session config.
Sourcepub fn version(self, version: FixVersion) -> FixSessionConfig
pub fn version(self, version: FixVersion) -> FixSessionConfig
Set FIX version.
Sourcepub fn heartbeat_interval(self, seconds: u32) -> FixSessionConfig
pub fn heartbeat_interval(self, seconds: u32) -> FixSessionConfig
Set heartbeat interval in seconds.
Sourcepub fn enable_logging(self, enable: bool) -> FixSessionConfig
pub fn enable_logging(self, enable: bool) -> FixSessionConfig
Enable or disable logging.
Trait Implementations§
Source§impl Clone for FixSessionConfig
impl Clone for FixSessionConfig
Source§fn clone(&self) -> FixSessionConfig
fn clone(&self) -> FixSessionConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FixSessionConfig
impl RefUnwindSafe for FixSessionConfig
impl Send for FixSessionConfig
impl Sync for FixSessionConfig
impl Unpin for FixSessionConfig
impl UnwindSafe for FixSessionConfig
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