Struct rust_gpu_tools::DeviceUuid
source · pub struct DeviceUuid(_);
Expand description
A unique identifier based on UUID of the device.
Trait Implementations§
source§impl Clone for DeviceUuid
impl Clone for DeviceUuid
source§fn clone(&self) -> DeviceUuid
fn clone(&self) -> DeviceUuid
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 DeviceUuid
impl Debug for DeviceUuid
source§impl Default for DeviceUuid
impl Default for DeviceUuid
source§fn default() -> DeviceUuid
fn default() -> DeviceUuid
Returns the “default value” for a type. Read more
source§impl Display for DeviceUuid
impl Display for DeviceUuid
Formats the UUID the same way as clinfo
does, as an example:
the output should looks like 46abccd6-022e-b783-572d-833f7104d05f
source§impl From<DeviceUuid> for [u8; 16]
impl From<DeviceUuid> for [u8; 16]
source§fn from(uuid: DeviceUuid) -> Self
fn from(uuid: DeviceUuid) -> Self
Converts to this type from the input type.
source§impl Hash for DeviceUuid
impl Hash for DeviceUuid
source§impl PartialEq<DeviceUuid> for DeviceUuid
impl PartialEq<DeviceUuid> for DeviceUuid
source§fn eq(&self, other: &DeviceUuid) -> bool
fn eq(&self, other: &DeviceUuid) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&str> for DeviceUuid
impl TryFrom<&str> for DeviceUuid
Converts a UUID formatted as aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee, e.g. 46abccd6-022e-b783-572d-833f7104d05f