pub struct SyncMessage {
pub msg_type: SyncMessageType,
pub seq: u16,
pub total_fragments: u8,
pub fragment_index: u8,
pub payload: Vec<u8>,
}Expand description
A sync message ready to be sent
Fields§
§msg_type: SyncMessageTypeMessage type
seq: u16Sequence number
total_fragments: u8Total fragments for this message
fragment_index: u8Current fragment index
payload: Vec<u8>Message payload
Implementations§
Trait Implementations§
Source§impl Clone for SyncMessage
impl Clone for SyncMessage
Source§fn clone(&self) -> SyncMessage
fn clone(&self) -> SyncMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SyncMessage
impl RefUnwindSafe for SyncMessage
impl Send for SyncMessage
impl Sync for SyncMessage
impl Unpin for SyncMessage
impl UnwindSafe for SyncMessage
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