pub struct Chunk<'a> {
pub ty: ContentType,
pub epoch: u16,
pub sequence_number: u64,
pub length: u16,
pub body: &'a [u8],
}
Fields§
§ty: ContentType
§epoch: u16
§sequence_number: u64
§length: u16
§body: &'a [u8]
Implementations§
Trait Implementations§
impl<'a> Copy for Chunk<'a>
impl<'a> Eq for Chunk<'a>
impl<'a> StructuralPartialEq for Chunk<'a>
Auto Trait Implementations§
impl<'a> Freeze for Chunk<'a>
impl<'a> RefUnwindSafe for Chunk<'a>
impl<'a> Send for Chunk<'a>
impl<'a> Sync for Chunk<'a>
impl<'a> Unpin for Chunk<'a>
impl<'a> UnwindSafe for Chunk<'a>
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