Struct nvml_wrapper::struct_wrappers::nv_link::UtilizationControl
source · pub struct UtilizationControl {
pub units: UtilizationCountUnit,
pub packet_filter: PacketTypes,
}
Expand description
Defines NvLink counter controls.
Fields§
§units: UtilizationCountUnit
§packet_filter: PacketTypes
Implementations§
source§impl UtilizationControl
impl UtilizationControl
sourcepub fn as_c(&self) -> nvmlNvLinkUtilizationControl_t
pub fn as_c(&self) -> nvmlNvLinkUtilizationControl_t
Obtain this struct’s C counterpart.
Trait Implementations§
source§impl Clone for UtilizationControl
impl Clone for UtilizationControl
source§fn clone(&self) -> UtilizationControl
fn clone(&self) -> UtilizationControl
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 UtilizationControl
impl Debug for UtilizationControl
source§impl Hash for UtilizationControl
impl Hash for UtilizationControl
source§impl PartialEq for UtilizationControl
impl PartialEq for UtilizationControl
source§fn eq(&self, other: &UtilizationControl) -> bool
fn eq(&self, other: &UtilizationControl) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<nvmlNvLinkUtilizationControl_st> for UtilizationControl
impl TryFrom<nvmlNvLinkUtilizationControl_st> for UtilizationControl
source§fn try_from(value: nvmlNvLinkUtilizationControl_t) -> Result<Self, Self::Error>
fn try_from(value: nvmlNvLinkUtilizationControl_t) -> Result<Self, Self::Error>
Construct UtilizationControl
from the corresponding C struct.
The packet_filter
bitmask is created via the PacketTypes::from_bits_truncate
method, meaning that any bits that don’t correspond to flags present in this
version of the wrapper will be dropped.
§Errors
UnexpectedVariant
, for which you can read the docs for
impl Eq for UtilizationControl
impl StructuralPartialEq for UtilizationControl
Auto Trait Implementations§
impl RefUnwindSafe for UtilizationControl
impl Send for UtilizationControl
impl Sync for UtilizationControl
impl Unpin for UtilizationControl
impl UnwindSafe for UtilizationControl
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