pub struct ChunkCursor {
pub transfer_id: u32,
pub total_size: u32,
pub next_offset: u32,
pub expected_sequence: u16,
pub chunk_size: u16,
}Fields§
§transfer_id: u32§total_size: u32§next_offset: u32§expected_sequence: u16§chunk_size: u16Implementations§
Source§impl ChunkCursor
impl ChunkCursor
pub fn validate(&self) -> EmbeddedResult<()>
Trait Implementations§
Source§impl Clone for ChunkCursor
impl Clone for ChunkCursor
Source§fn clone(&self) -> ChunkCursor
fn clone(&self) -> ChunkCursor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChunkCursor
impl Debug for ChunkCursor
impl Eq for ChunkCursor
Source§impl PartialEq for ChunkCursor
impl PartialEq for ChunkCursor
Source§fn eq(&self, other: &ChunkCursor) -> bool
fn eq(&self, other: &ChunkCursor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChunkCursor
Auto Trait Implementations§
impl Freeze for ChunkCursor
impl RefUnwindSafe for ChunkCursor
impl Send for ChunkCursor
impl Sync for ChunkCursor
impl Unpin for ChunkCursor
impl UnsafeUnpin for ChunkCursor
impl UnwindSafe for ChunkCursor
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