#[repr(C)]pub enum MessageType {
Squad = 0,
Npc = 1,
}
Expand description
Type of message.
Variants§
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
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 MessageType
impl Debug for MessageType
Source§impl<'de> Deserialize<'de> for MessageType
impl<'de> Deserialize<'de> for MessageType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MessageType
impl Display for MessageType
Source§impl<'_derivative_strum> From<&'_derivative_strum MessageType> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum MessageType> for &'static str
Source§fn from(x: &'_derivative_strum MessageType) -> &'static str
fn from(x: &'_derivative_strum MessageType) -> &'static str
Converts to this type from the input type.
Source§impl From<MessageType> for &'static str
impl From<MessageType> for &'static str
Source§fn from(x: MessageType) -> &'static str
fn from(x: MessageType) -> &'static str
Converts to this type from the input type.
Source§impl Hash for MessageType
impl Hash for MessageType
Source§impl IntoEnumIterator for MessageType
impl IntoEnumIterator for MessageType
type Iterator = MessageTypeIter
fn iter() -> MessageTypeIter ⓘ
Source§impl Ord for MessageType
impl Ord for MessageType
Source§fn cmp(&self, other: &MessageType) -> Ordering
fn cmp(&self, other: &MessageType) -> 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 for MessageType
impl PartialEq for MessageType
Source§impl PartialOrd for MessageType
impl PartialOrd for MessageType
Source§impl Serialize for MessageType
impl Serialize for MessageType
Source§impl VariantNames for MessageType
impl VariantNames for MessageType
impl Copy for MessageType
impl Eq for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnwindSafe for MessageType
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