#[repr(u8)]pub enum EUdpPacketType {
Invalid = 0,
ChallengeReq = 1,
Challenge = 2,
Connect = 3,
Accept = 4,
Disconnect = 5,
Data = 6,
Datagram = 7,
Max = 8,
}Expand description
The EUdpPacketType enumeration.
Source: lang/steammsg.steamd.
Variants§
Invalid = 0
ChallengeReq = 1
Challenge = 2
Connect = 3
Accept = 4
Disconnect = 5
Data = 6
Datagram = 7
Max = 8
Implementations§
Source§impl EUdpPacketType
impl EUdpPacketType
Sourcepub const ALL: &'static [EUdpPacketType]
pub const ALL: &'static [EUdpPacketType]
Every variant of EUdpPacketType.
Sourcepub fn from_value(value: u8) -> Option<Self>
pub fn from_value(value: u8) -> Option<Self>
Builds a variant from its numeric value.
When several variants share a value, the first declared one is returned.
Trait Implementations§
Source§impl Clone for EUdpPacketType
impl Clone for EUdpPacketType
impl Copy for EUdpPacketType
Source§impl Debug for EUdpPacketType
impl Debug for EUdpPacketType
impl Eq for EUdpPacketType
Source§impl From<EUdpPacketType> for u8
impl From<EUdpPacketType> for u8
Source§fn from(value: EUdpPacketType) -> u8
fn from(value: EUdpPacketType) -> u8
Converts to this type from the input type.
Source§impl Hash for EUdpPacketType
impl Hash for EUdpPacketType
Source§impl Ord for EUdpPacketType
impl Ord for EUdpPacketType
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for EUdpPacketType
impl PartialEq for EUdpPacketType
Source§impl PartialOrd for EUdpPacketType
impl PartialOrd for EUdpPacketType
impl StructuralPartialEq for EUdpPacketType
Source§impl TryFrom<u8> for EUdpPacketType
impl TryFrom<u8> for EUdpPacketType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§impl TryFrom<u32> for EUdpPacketType
impl TryFrom<u32> for EUdpPacketType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§impl WireEnum for EUdpPacketType
impl WireEnum for EUdpPacketType
Source§impl WireValue for EUdpPacketType
impl WireValue for EUdpPacketType
Auto Trait Implementations§
impl Freeze for EUdpPacketType
impl RefUnwindSafe for EUdpPacketType
impl Send for EUdpPacketType
impl Sync for EUdpPacketType
impl Unpin for EUdpPacketType
impl UnsafeUnpin for EUdpPacketType
impl UnwindSafe for EUdpPacketType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.