pub struct PacketFrame {
pub kind: u8,
pub sequence: u32,
pub payload: Vec<u8>,
}Fields§
§kind: u8§sequence: u32§payload: Vec<u8>Implementations§
Source§impl PacketFrame
impl PacketFrame
Trait Implementations§
Source§impl Clone for PacketFrame
impl Clone for PacketFrame
Source§fn clone(&self) -> PacketFrame
fn clone(&self) -> PacketFrame
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 PacketFrame
impl Debug for PacketFrame
impl Eq for PacketFrame
Source§impl PartialEq for PacketFrame
impl PartialEq for PacketFrame
Source§fn eq(&self, other: &PacketFrame) -> bool
fn eq(&self, other: &PacketFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PacketFrame
Auto Trait Implementations§
impl Freeze for PacketFrame
impl RefUnwindSafe for PacketFrame
impl Send for PacketFrame
impl Sync for PacketFrame
impl Unpin for PacketFrame
impl UnsafeUnpin for PacketFrame
impl UnwindSafe for PacketFrame
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