Enum raknet::PacketPriority
source · #[repr(u8)]pub enum PacketPriority {
System,
High,
Medium,
Low,
// some variants omitted
}
Expand description
These enumerations are used to describe when packets are delivered.
Variants§
System
\internal Used by RakNet to send above-high priority messages.
High
High priority messages are send before medium priority messages.
Medium
Medium priority messages are send before low priority messages.
Low
Low priority messages are only sent when no other messages are waiting.
Trait Implementations§
source§impl Clone for PacketPriority
impl Clone for PacketPriority
source§fn clone(&self) -> PacketPriority
fn clone(&self) -> PacketPriority
Returns a copy 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 PacketPriority
impl Debug for PacketPriority
source§impl Ord for PacketPriority
impl Ord for PacketPriority
source§fn cmp(&self, other: &PacketPriority) -> Ordering
fn cmp(&self, other: &PacketPriority) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<PacketPriority> for PacketPriority
impl PartialEq<PacketPriority> for PacketPriority
source§fn eq(&self, other: &PacketPriority) -> bool
fn eq(&self, other: &PacketPriority) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PacketPriority> for PacketPriority
impl PartialOrd<PacketPriority> for PacketPriority
source§fn partial_cmp(&self, other: &PacketPriority) -> Option<Ordering>
fn partial_cmp(&self, other: &PacketPriority) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PacketPriority
impl Eq for PacketPriority
impl StructuralEq for PacketPriority
impl StructuralPartialEq for PacketPriority
Auto Trait Implementations§
impl RefUnwindSafe for PacketPriority
impl Send for PacketPriority
impl Sync for PacketPriority
impl Unpin for PacketPriority
impl UnwindSafe for PacketPriority
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