pub struct SessionConfigBuilder { /* private fields */ }Expand description
Builder for session configuration.
Implementations§
Source§impl SessionConfigBuilder
impl SessionConfigBuilder
Sourcepub fn sender_comp_id(self, id: CompId) -> Self
pub fn sender_comp_id(self, id: CompId) -> Self
Sets the sender CompID.
Sourcepub fn target_comp_id(self, id: CompId) -> Self
pub fn target_comp_id(self, id: CompId) -> Self
Sets the target CompID.
Sourcepub fn begin_string(self, version: impl Into<String>) -> Self
pub fn begin_string(self, version: impl Into<String>) -> Self
Sets the FIX version.
Sourcepub fn heartbeat_interval(self, interval: Duration) -> Self
pub fn heartbeat_interval(self, interval: Duration) -> Self
Sets the heartbeat interval.
Sourcepub const fn reset_on_logon(self, reset: bool) -> Self
pub const fn reset_on_logon(self, reset: bool) -> Self
Sets whether to reset on logon.
Sourcepub fn build(self) -> SessionConfig
pub fn build(self) -> SessionConfig
Trait Implementations§
Source§impl Debug for SessionConfigBuilder
impl Debug for SessionConfigBuilder
Source§impl Default for SessionConfigBuilder
impl Default for SessionConfigBuilder
Source§fn default() -> SessionConfigBuilder
fn default() -> SessionConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionConfigBuilder
impl RefUnwindSafe for SessionConfigBuilder
impl Send for SessionConfigBuilder
impl Sync for SessionConfigBuilder
impl Unpin for SessionConfigBuilder
impl UnwindSafe for SessionConfigBuilder
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