pub struct MessageDescription {
pub sequence_count: u32,
pub message_length: usize,
pub checksum: u32,
pub fragment_length: usize,
}Expand description
Description of how a message is split into parts.
This structure is a subset of the information of a Part.
Fields§
§sequence_count: u32The total sequence count.
message_length: usizeThe total message length, in bytes, excluding the padding bytes size.
checksum: u32The CRC32 checksum of the entire message.
fragment_length: usizeThe length of a single fragment.
Trait Implementations§
Source§impl Clone for MessageDescription
impl Clone for MessageDescription
Source§fn clone(&self) -> MessageDescription
fn clone(&self) -> MessageDescription
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 moreSource§impl Debug for MessageDescription
impl Debug for MessageDescription
Source§impl Hash for MessageDescription
impl Hash for MessageDescription
Source§impl<'a> PartialEq<MessageDescription> for Part<'a>
impl<'a> PartialEq<MessageDescription> for Part<'a>
Source§impl PartialEq for MessageDescription
impl PartialEq for MessageDescription
impl Eq for MessageDescription
impl StructuralPartialEq for MessageDescription
Auto Trait Implementations§
impl Freeze for MessageDescription
impl RefUnwindSafe for MessageDescription
impl Send for MessageDescription
impl Sync for MessageDescription
impl Unpin for MessageDescription
impl UnwindSafe for MessageDescription
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more