Struct sysfuss::HwMonAttribute
source · pub struct HwMonAttribute { /* private fields */ }Expand description
Attribute representation.
Attribute files are usually in the format <type><number>_<item>.
Implementations§
source§impl HwMonAttribute
impl HwMonAttribute
sourcepub const fn new(
ty: HwMonAttributeType,
number: u64,
item: HwMonAttributeItem
) -> Self
pub const fn new( ty: HwMonAttributeType, number: u64, item: HwMonAttributeItem ) -> Self
Custom attribute in standard format
Trait Implementations§
source§impl Clone for HwMonAttribute
impl Clone for HwMonAttribute
source§fn clone(&self) -> HwMonAttribute
fn clone(&self) -> HwMonAttribute
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 PartialEq<HwMonAttribute> for HwMonAttribute
impl PartialEq<HwMonAttribute> for HwMonAttribute
source§fn eq(&self, other: &HwMonAttribute) -> bool
fn eq(&self, other: &HwMonAttribute) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl SysAttribute for HwMonAttribute
impl SysAttribute for HwMonAttribute
source§fn exists(&self, entity: &dyn SysEntity) -> bool
fn exists(&self, entity: &dyn SysEntity) -> bool
returns true if the path to the attribute file exists
source§fn read_value(&self, entity: &dyn SysEntity) -> IoResult<Vec<u8>>
fn read_value(&self, entity: &dyn SysEntity) -> IoResult<Vec<u8>>
read attribute value from sysfs
source§impl SysEntityAttributes<HwMonAttribute> for HwMonPath
impl SysEntityAttributes<HwMonAttribute> for HwMonPath
source§fn capabilities(&self) -> Vec<HwMonAttribute>
fn capabilities(&self) -> Vec<HwMonAttribute>
Get attributes available on this entity;
impl Copy for HwMonAttribute
impl Eq for HwMonAttribute
impl StructuralEq for HwMonAttribute
impl StructuralPartialEq for HwMonAttribute
Auto Trait Implementations§
impl RefUnwindSafe for HwMonAttribute
impl Send for HwMonAttribute
impl Sync for HwMonAttribute
impl Unpin for HwMonAttribute
impl UnwindSafe for HwMonAttribute
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