pub struct SyncDataHeader {
pub op: SyncDataOp,
pub seq: u16,
pub total_fragments: u8,
pub fragment_index: u8,
}Expand description
Sync Data characteristic header
Write/Indicate characteristic for sync data transfer.
Fields§
§op: SyncDataOpOperation type
seq: u16Sequence number
total_fragments: u8Total fragments (for multi-packet transfers)
fragment_index: u8Current fragment index
Implementations§
Trait Implementations§
Source§impl Clone for SyncDataHeader
impl Clone for SyncDataHeader
Source§fn clone(&self) -> SyncDataHeader
fn clone(&self) -> SyncDataHeader
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 SyncDataHeader
impl RefUnwindSafe for SyncDataHeader
impl Send for SyncDataHeader
impl Sync for SyncDataHeader
impl Unpin for SyncDataHeader
impl UnwindSafe for SyncDataHeader
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