pub struct ProtocolHeader {
pub reserved: u64,
pub typ: u16,
pub reserved2: u16,
}
Fields§
§reserved: u64
64 bits: Reserved
typ: u16
16 bits: Message type determines the payload being used
See also Message::get_num
reserved2: u16
16 bits: Reserved
Implementations§
Trait Implementations§
Source§impl Clone for ProtocolHeader
impl Clone for ProtocolHeader
Source§fn clone(&self) -> ProtocolHeader
fn clone(&self) -> ProtocolHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProtocolHeader
impl Debug for ProtocolHeader
Source§impl PartialEq for ProtocolHeader
impl PartialEq for ProtocolHeader
impl Copy for ProtocolHeader
impl Eq for ProtocolHeader
impl StructuralPartialEq for ProtocolHeader
Auto Trait Implementations§
impl Freeze for ProtocolHeader
impl RefUnwindSafe for ProtocolHeader
impl Send for ProtocolHeader
impl Sync for ProtocolHeader
impl Unpin for ProtocolHeader
impl UnwindSafe for ProtocolHeader
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