#[non_exhaustive]#[repr(u32)]pub enum PayloadType {
Unknown = 0,
UnsignedInt64 = 1,
Int64 = 2,
Double = 3,
UnsignedInt32 = 4,
Int32 = 5,
Float = 6,
}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 PayloadType
impl Clone for PayloadType
Source§fn clone(&self) -> PayloadType
fn clone(&self) -> PayloadType
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 PayloadType
Source§impl Debug for PayloadType
impl Debug for PayloadType
Source§impl Display for PayloadType
impl Display for PayloadType
impl Eq for PayloadType
Source§impl From<PayloadType> for u32
impl From<PayloadType> for u32
Source§fn from(enum_value: PayloadType) -> Self
fn from(enum_value: PayloadType) -> Self
Converts to this type from the input type.
Source§impl From<PayloadType> for nvtxPayloadType_t
impl From<PayloadType> for nvtxPayloadType_t
Source§fn from(value: PayloadType) -> Self
fn from(value: PayloadType) -> Self
Converts to this type from the input type.
Source§impl From<nvtxPayloadType_t> for PayloadType
impl From<nvtxPayloadType_t> for PayloadType
Source§fn from(value: nvtxPayloadType_t) -> Self
fn from(value: nvtxPayloadType_t) -> Self
Converts to this type from the input type.
Source§impl Hash for PayloadType
impl Hash for PayloadType
Source§impl PartialEq for PayloadType
impl PartialEq for PayloadType
Source§fn eq(&self, other: &PayloadType) -> bool
fn eq(&self, other: &PayloadType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PayloadType
Source§impl TryFrom<u32> for PayloadType
impl TryFrom<u32> for PayloadType
Source§type Error = TryFromPrimitiveError<PayloadType>
type Error = TryFromPrimitiveError<PayloadType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PayloadType
impl TryFromPrimitive for PayloadType
const NAME: &'static str = "PayloadType"
type Primitive = u32
type Error = TryFromPrimitiveError<PayloadType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for PayloadType
impl RefUnwindSafe for PayloadType
impl Send for PayloadType
impl Sync for PayloadType
impl Unpin for PayloadType
impl UnsafeUnpin for PayloadType
impl UnwindSafe for PayloadType
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