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: UtilizationCountUnitpacket_filter: PacketTypesImplementations
sourceimpl 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
sourceimpl Clone for UtilizationControl
impl Clone for UtilizationControl
sourcefn clone(&self) -> UtilizationControl
fn clone(&self) -> UtilizationControl
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for UtilizationControl
impl Debug for UtilizationControl
sourceimpl Hash for UtilizationControl
impl Hash for UtilizationControl
sourceimpl PartialEq<UtilizationControl> for UtilizationControl
impl PartialEq<UtilizationControl> for UtilizationControl
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &UtilizationControl) -> bool
fn ne(&self, other: &UtilizationControl) -> bool
This method tests for !=.
sourceimpl TryFrom<nvmlNvLinkUtilizationControl_st> for UtilizationControl
impl TryFrom<nvmlNvLinkUtilizationControl_st> for UtilizationControl
sourcefn 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 StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more