Enum hwlocality::object::types::OSDeviceType
source · #[repr(u32)]pub enum OSDeviceType {
Storage = 0,
GPU = 1,
Network = 2,
OpenFabrics = 3,
DMA = 4,
CoProcessor = 5,
Memory = 6,
}
Expand description
Type of a OS device
Variants§
Storage = 0
Operating system storage device (e.g. block)
For instance “sda” or “dax2.0” on Linux.
GPU = 1
Operating system GPU device
For instance “:0.0” for a GL display, “card0” for a Linux DRM device.
Network = 2
Operating system network device
For instance the “eth0” interface on Linux.
OpenFabrics = 3
Operating system openfabrics device
For instance the mlx4_0
InfiniBand HCA, hfi1_0
Omni-Path interface,
or bxi0
Atos/Bull BXI HCA on Linux.
DMA = 4
Operating system dma engine device
For instance the “dma0chan0” DMA channel on Linux.
CoProcessor = 5
Operating system co-processor device
For instance “opencl0d0” for a OpenCL device, “cuda0” for a CUDA device.
Memory = 6
Available on crate feature
hwloc-3_0_0
only.Operating system memory device
For instance DAX file for non-volatile or high-bandwidth memory, like “dax2.0” on Linux.
Trait Implementations§
source§impl Arbitrary for OSDeviceType
Available on crate feature proptest
only.
impl Arbitrary for OSDeviceType
Available on crate feature
proptest
only.§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = Map<Range<usize>, fn(_: usize) -> OSDeviceType>
type Strategy = Map<Range<usize>, fn(_: usize) -> OSDeviceType>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
source§impl Clone for OSDeviceType
impl Clone for OSDeviceType
source§fn clone(&self) -> OSDeviceType
fn clone(&self) -> OSDeviceType
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 OSDeviceType
impl Debug for OSDeviceType
source§impl Display for OSDeviceType
impl Display for OSDeviceType
source§impl From<OSDeviceType> for u32
impl From<OSDeviceType> for u32
source§fn from(enum_value: OSDeviceType) -> Self
fn from(enum_value: OSDeviceType) -> Self
Converts to this type from the input type.
source§impl Hash for OSDeviceType
impl Hash for OSDeviceType
source§impl PartialEq for OSDeviceType
impl PartialEq for OSDeviceType
source§fn eq(&self, other: &OSDeviceType) -> bool
fn eq(&self, other: &OSDeviceType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sequence for OSDeviceType
impl Sequence for OSDeviceType
source§impl TryFrom<u32> for OSDeviceType
impl TryFrom<u32> for OSDeviceType
§type Error = TryFromPrimitiveError<OSDeviceType>
type Error = TryFromPrimitiveError<OSDeviceType>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for OSDeviceType
impl TryFromPrimitive for OSDeviceType
type Primitive = u32
type Error = TryFromPrimitiveError<OSDeviceType>
const NAME: &'static str = "OSDeviceType"
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for OSDeviceType
impl Eq for OSDeviceType
impl StructuralPartialEq for OSDeviceType
Auto Trait Implementations§
impl Freeze for OSDeviceType
impl RefUnwindSafe for OSDeviceType
impl Send for OSDeviceType
impl Sync for OSDeviceType
impl Unpin for OSDeviceType
impl UnwindSafe for OSDeviceType
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