pub struct Frame<'a> {
pub bytes: &'a [u8],
pub begin_string: BeginString<'a>,
pub body_length: usize,
pub msg_type: &'a [u8],
}Expand description
One well-framed, checksum-verified message.
Carries the raw frame bytes plus the three preamble fields whose position is
guaranteed by the frame structure itself (8/9/35).
Fields§
§bytes: &'a [u8]The full frame: 8= through the SOH after CheckSum.
begin_string: BeginString<'a>BeginString(8)
body_length: usizeBodyLength(9)
msg_type: &'a [u8]MsgType(35)
Trait Implementations§
impl<'a> Eq for Frame<'a>
impl<'a> StructuralPartialEq for Frame<'a>
Auto Trait Implementations§
impl<'a> Freeze for Frame<'a>
impl<'a> RefUnwindSafe for Frame<'a>
impl<'a> Send for Frame<'a>
impl<'a> Sync for Frame<'a>
impl<'a> Unpin for Frame<'a>
impl<'a> UnsafeUnpin for Frame<'a>
impl<'a> UnwindSafe for Frame<'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