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