pub struct HeaderBase<'a> {
pub sender_comp_id: Cow<'a, FixStr>,
pub target_comp_id: Cow<'a, FixStr>,
pub msg_seq_num: SeqNum,
pub sending_time: UtcTimestamp,
pub poss_dup_flag: Option<Boolean>,
pub orig_sending_time: Option<UtcTimestamp>,
pub appl_ver_id: Option<ApplVerId>,
}Expand description
Base header containing only the fields the session layer reads/writes.
- Incoming: returned by
SessionMessage::headerwithCow::Borrowed- zero allocations. - Outgoing: built by session with
Cow::Owned, consumed viaFromconversion.
Fields§
§sender_comp_id: Cow<'a, FixStr>§target_comp_id: Cow<'a, FixStr>§msg_seq_num: SeqNum§sending_time: UtcTimestamp§poss_dup_flag: Option<Boolean>§orig_sending_time: Option<UtcTimestamp>§appl_ver_id: Option<ApplVerId>FIXT only. None for pre-FIXT versions.
Implementations§
Source§impl HeaderBase<'_>
impl HeaderBase<'_>
Sourcepub fn into_owned(self) -> HeaderBase<'static>
pub fn into_owned(self) -> HeaderBase<'static>
Detach the header from the message bytes it borrows, converting
the Cow fields to owned values. Allocates only for borrowed
CompIDs; every other field is Copy.
Trait Implementations§
Source§impl<'a> Clone for HeaderBase<'a>
impl<'a> Clone for HeaderBase<'a>
Source§impl<'a> Debug for HeaderBase<'a>
impl<'a> Debug for HeaderBase<'a>
Auto Trait Implementations§
impl<'a> Forget for HeaderBase<'a>
impl<'a> Freeze for HeaderBase<'a>
impl<'a> RefUnwindSafe for HeaderBase<'a>
impl<'a> Send for HeaderBase<'a>
impl<'a> Sync for HeaderBase<'a>
impl<'a> Unpin for HeaderBase<'a>
impl<'a> UnsafeUnpin for HeaderBase<'a>
impl<'a> UnwindSafe for HeaderBase<'a>
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