pub struct PacketFlags(/* private fields */);Expand description
Packet flags for protocol control.
Implementations§
Source§impl PacketFlags
impl PacketFlags
Sourcepub const fn is_handshake(self) -> bool
pub const fn is_handshake(self) -> bool
Check if this is a handshake packet
Sourcepub const fn is_heartbeat(self) -> bool
pub const fn is_heartbeat(self) -> bool
Check if this is a heartbeat packet
Sourcepub const fn is_reliable(self) -> bool
pub const fn is_reliable(self) -> bool
Check if reliability is requested
Trait Implementations§
Source§impl Clone for PacketFlags
impl Clone for PacketFlags
Source§fn clone(&self) -> PacketFlags
fn clone(&self) -> PacketFlags
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 PacketFlags
Source§impl Debug for PacketFlags
impl Debug for PacketFlags
Source§impl Default for PacketFlags
impl Default for PacketFlags
Source§fn default() -> PacketFlags
fn default() -> PacketFlags
Returns the “default value” for a type. Read more
impl Eq for PacketFlags
Source§impl PartialEq for PacketFlags
impl PartialEq for PacketFlags
Source§fn eq(&self, other: &PacketFlags) -> bool
fn eq(&self, other: &PacketFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PacketFlags
Auto Trait Implementations§
impl Freeze for PacketFlags
impl RefUnwindSafe for PacketFlags
impl Send for PacketFlags
impl Sync for PacketFlags
impl Unpin for PacketFlags
impl UnsafeUnpin for PacketFlags
impl UnwindSafe for PacketFlags
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.