#[non_exhaustive]#[repr(u32)]pub enum MessageType {
Unknown = 0,
Ascii = 1,
Unicode = 2,
Registered = 3,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
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 MessageType
Source§impl Debug for MessageType
impl Debug for MessageType
Source§impl Display for MessageType
impl Display for MessageType
impl Eq for MessageType
Source§impl From<MessageType> for u32
impl From<MessageType> for u32
Source§fn from(enum_value: MessageType) -> Self
fn from(enum_value: MessageType) -> Self
Converts to this type from the input type.
Source§impl From<MessageType> for nvtxMessageType_t
impl From<MessageType> for nvtxMessageType_t
Source§fn from(value: MessageType) -> Self
fn from(value: MessageType) -> Self
Converts to this type from the input type.
Source§impl From<nvtxMessageType_t> for MessageType
impl From<nvtxMessageType_t> for MessageType
Source§fn from(value: nvtxMessageType_t) -> Self
fn from(value: nvtxMessageType_t) -> Self
Converts to this type from the input type.
Source§impl Hash for MessageType
impl Hash for MessageType
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
Source§fn eq(&self, other: &MessageType) -> bool
fn eq(&self, other: &MessageType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MessageType
Source§impl TryFrom<u32> for MessageType
impl TryFrom<u32> for MessageType
Source§type Error = TryFromPrimitiveError<MessageType>
type Error = TryFromPrimitiveError<MessageType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for MessageType
impl TryFromPrimitive for MessageType
const NAME: &'static str = "MessageType"
type Primitive = u32
type Error = TryFromPrimitiveError<MessageType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnsafeUnpin 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