pub struct Frame {
pub sender: Identity,
pub recipient: Recipient,
pub seq: SeqData,
pub payload: Vec<u8>,
}
Expand description
A sequence of data, represented by a single network packet
Because a Frame
is usually created in a sequence, the
constructors assume chainable operations, such as a Vec<Frame>
can be returned with all sequence ID information correctly setup.
Fields§
§sender: Identity
Sender information
recipient: Recipient
Recipient information
seq: SeqData
Data sequence identifiers
payload: Vec<u8>
Raw data payload
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Frame
impl<'de> Deserialize<'de> for Frame
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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