[−][src]Struct libmedium::hwmon::ReadOnlyHwmon
The read only variant of Hwmon. It contains all sensors found whithin its directory path.
Trait Implementations
impl Clone for ReadOnlyHwmon
[src]
fn clone(&self) -> ReadOnlyHwmon
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ReadOnlyHwmon
[src]
impl From<ReadWriteHwmon> for ReadOnlyHwmon
[src]
fn from(read_write: ReadWriteHwmon) -> Self
[src]
impl Hwmon for ReadOnlyHwmon
[src]
type Current = ReadOnlyCurr
The type of current sensor this Hwmon
supports.
type Energy = ReadOnlyEnergy
The type of energy sensor this Hwmon
supports.
type Fan = ReadOnlyFan
The type of fan sensor this Hwmon
supports.
type Humidity = ReadOnlyHumidity
The type of humidity sensor this Hwmon
supports.
type Power = ReadOnlyPower
The type of power sensor this Hwmon
supports.
type Pwm = ReadOnlyPwm
The type of pwm sensor this Hwmon
supports.
type Temp = ReadOnlyTemp
The type of temp sensor this Hwmon
supports.
type Voltage = ReadOnlyVolt
The type of voltage sensor this Hwmon
supports.
fn name(&self) -> &str
[src]
fn path(&self) -> &Path
[src]
fn currents(&self) -> &BTreeMap<u16, Self::Current>
[src]
fn energies(&self) -> &BTreeMap<u16, Self::Energy>
[src]
fn fans(&self) -> &BTreeMap<u16, Self::Fan>
[src]
fn humidities(&self) -> &BTreeMap<u16, Self::Humidity>
[src]
fn powers(&self) -> &BTreeMap<u16, Self::Power>
[src]
fn pwms(&self) -> &BTreeMap<u16, Self::Pwm>
[src]
fn temps(&self) -> &BTreeMap<u16, Self::Temp>
[src]
fn voltages(&self) -> &BTreeMap<u16, Self::Voltage>
[src]
fn device_path(&self) -> PathBuf
[src]
fn current(&self, index: u16) -> Option<&Self::Current>
[src]
fn energy(&self, index: u16) -> Option<&Self::Energy>
[src]
fn fan(&self, index: u16) -> Option<&Self::Fan>
[src]
fn humidity(&self, index: u16) -> Option<&Self::Humidity>
[src]
fn power(&self, index: u16) -> Option<&Self::Power>
[src]
fn pwm(&self, index: u16) -> Option<&Self::Pwm>
[src]
fn temp(&self, index: u16) -> Option<&Self::Temp>
[src]
fn voltage(&self, index: u16) -> Option<&Self::Voltage>
[src]
Auto Trait Implementations
impl RefUnwindSafe for ReadOnlyHwmon
impl Send for ReadOnlyHwmon
impl Sync for ReadOnlyHwmon
impl Unpin for ReadOnlyHwmon
impl UnwindSafe for ReadOnlyHwmon
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,