pub struct SegmentHeader {
pub segment_type: SegmentType,
pub payload_len: u64,
pub payload_crc32c: u32,
}Fields§
§segment_type: SegmentType§payload_len: u64§payload_crc32c: u32Implementations§
Trait Implementations§
Source§impl Clone for SegmentHeader
impl Clone for SegmentHeader
Source§fn clone(&self) -> SegmentHeader
fn clone(&self) -> SegmentHeader
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 moreimpl Copy for SegmentHeader
Source§impl Debug for SegmentHeader
impl Debug for SegmentHeader
impl Eq for SegmentHeader
Source§impl PartialEq for SegmentHeader
impl PartialEq for SegmentHeader
Source§fn eq(&self, other: &SegmentHeader) -> bool
fn eq(&self, other: &SegmentHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SegmentHeader
Auto Trait Implementations§
impl Freeze for SegmentHeader
impl RefUnwindSafe for SegmentHeader
impl Send for SegmentHeader
impl Sync for SegmentHeader
impl Unpin for SegmentHeader
impl UnsafeUnpin for SegmentHeader
impl UnwindSafe for SegmentHeader
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