pub struct Config { /* private fields */ }Expand description
Implementations§
Source§impl Config
impl Config
Sourcepub fn set_separator(&mut self, separator: u8)
pub fn set_separator(&mut self, separator: u8)
Changes the field separator character. It is SOH (ASCII 0x1) by default. This also disables checksum verification for decode operations to avoid checksum issues if not SOH.
§Examples
use fefix::tagvalue::{Config, Configure};
let config = &mut Config::default();
assert_eq!(config.separator(), 0x1);
config.set_separator(b'|');
assert_eq!(config.separator(), b'|');Sourcepub fn set_max_message_size(&mut self, max_message_size: Option<usize>)
pub fn set_max_message_size(&mut self, max_message_size: Option<usize>)
Changes the value of Configure::max_message_size.
Sourcepub fn set_verify_checksum(&mut self, verify: bool)
pub fn set_verify_checksum(&mut self, verify: bool)
Turns on or off CheckSum <10> verification. On by default.
§Examples
use fefix::tagvalue::{Config, Configure};
let config = &mut Config::default();
assert_eq!(config.verify_checksum(), true);
config.set_verify_checksum(false);
assert_eq!(config.verify_checksum(), false);Sourcepub fn set_decode_assoc(&mut self, should: bool)
pub fn set_decode_assoc(&mut self, should: bool)
Enables or disables random access of fields within a
Message. When this setting is turned off fields can
only be accessed iteratively.
Enabled by default.
Trait Implementations§
Source§impl Configure for Config
impl Configure for Config
Source§fn separator(&self) -> u8
fn separator(&self) -> u8
The delimiter character, which terminates every tag-value pair including
the last one. Read more
Source§fn verify_checksum(&self) -> bool
fn verify_checksum(&self) -> bool
Determines wheather or not
CheckSum(10) should be verified. Read moreSource§fn max_message_size(&self) -> Option<usize>
fn max_message_size(&self) -> Option<usize>
The maximum allowed size for any single FIX message. No restrictions are
imposed when it is
None.Source§fn should_decode_associative(&self) -> bool
fn should_decode_associative(&self) -> bool
Determines whether or not the decoder needs to have access to
associative FIX fields. If turned off, only linear access is possible.
impl Copy for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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