pub struct ProtocolHeader {
pub proto_version: u8,
pub client_type: u8,
pub client_version: u16,
pub language: u8,
pub user_id: u32,
pub is_push: bool,
pub is_compressed: bool,
pub serial_num: u32,
pub cmd: u16,
pub ex_head_body_len: u32,
pub reserved: [u8; 8],
pub ex_head_len: u16,
}Fields§
§proto_version: u8§client_type: u8§client_version: u16§language: u8§user_id: u32§is_push: bool§is_compressed: bool§serial_num: u32§cmd: u16§ex_head_body_len: u32§reserved: [u8; 8]§ex_head_len: u16Implementations§
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§fn clone_from(&mut self, source: &Self)
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 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.