Struct hotfix_encoding::field_types::CheckSum
source · pub struct CheckSum(pub u8);
Expand description
The result of a FIX checksum calculation (0-255).
You generally shouldn’t need to use CheckSum
directly unless you’re
building custom low-level FIX primitives (e.g. a new decoder).
Tuple Fields§
§0: u8
Implementations§
Trait Implementations§
source§impl<'a> FieldType<'a> for CheckSum
impl<'a> FieldType<'a> for CheckSum
§type SerializeSettings = ()
type SerializeSettings = ()
A type with values that customize the serialization algorithm, e.g.
padding information.
source§fn serialize_with<B>(&self, buffer: &mut B, _settings: ()) -> usizewhere
B: Buffer,
fn serialize_with<B>(&self, buffer: &mut B, _settings: ()) -> usizewhere B: Buffer,
Writes
self
to buffer
using custom serialization settings
.source§fn deserialize(data: &'a [u8]) -> Result<Self, Self::Error>
fn deserialize(data: &'a [u8]) -> Result<Self, Self::Error>
Parses and deserializes from
data
.source§fn deserialize_lossy(data: &'a [u8]) -> Result<Self, Self::Error>
fn deserialize_lossy(data: &'a [u8]) -> Result<Self, Self::Error>
Like
FieldType::deserialize
, but it’s allowed to skip some amount of
input checking. Invalid inputs might not trigger errors and instead be
deserialized as random values. Read moresource§impl PartialEq for CheckSum
impl PartialEq for CheckSum
impl Copy for CheckSum
impl Eq for CheckSum
impl StructuralEq for CheckSum
impl StructuralPartialEq for CheckSum
Auto Trait Implementations§
impl RefUnwindSafe for CheckSum
impl Send for CheckSum
impl Sync for CheckSum
impl Unpin for CheckSum
impl UnwindSafe for CheckSum
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