Struct flipdot_core::ChunkCount
source · pub struct ChunkCount(pub u16);
Expand description
The number of chunks sent in SendData
messages, reported by DataChunksSent
.
§Examples
use flipdot_core::{ChunkCount, Message};
// Assume we just sent three SendData messages. That should be followed with:
let message = Message::DataChunksSent(ChunkCount(3));
Tuple Fields§
§0: u16
Trait Implementations§
source§impl Clone for ChunkCount
impl Clone for ChunkCount
source§fn clone(&self) -> ChunkCount
fn clone(&self) -> ChunkCount
Returns a copy 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 moresource§impl Debug for ChunkCount
impl Debug for ChunkCount
source§impl Display for ChunkCount
impl Display for ChunkCount
source§impl Hash for ChunkCount
impl Hash for ChunkCount
source§impl LowerHex for ChunkCount
impl LowerHex for ChunkCount
source§impl PartialEq for ChunkCount
impl PartialEq for ChunkCount
source§fn eq(&self, other: &ChunkCount) -> bool
fn eq(&self, other: &ChunkCount) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl UpperHex for ChunkCount
impl UpperHex for ChunkCount
impl Copy for ChunkCount
impl Eq for ChunkCount
impl StructuralPartialEq for ChunkCount
Auto Trait Implementations§
impl RefUnwindSafe for ChunkCount
impl Send for ChunkCount
impl Sync for ChunkCount
impl Unpin for ChunkCount
impl UnwindSafe for ChunkCount
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