[−][src]Struct libmedium::sensors::ReadOnlyEnergy
Struct that represents a read only energy sensor.
Trait Implementations
impl Clone for ReadOnlyEnergy
[src]
fn clone(&self) -> ReadOnlyEnergy
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ReadOnlyEnergy
[src]
impl EnergySensor for ReadOnlyEnergy
[src]
impl From<ReadWriteEnergy> for ReadOnlyEnergy
[src]
fn from(write_energy: ReadWriteEnergy) -> ReadOnlyEnergy
[src]
impl SensorBase for ReadOnlyEnergy
[src]
fn base(&self) -> &'static str
[src]
fn index(&self) -> u16
[src]
fn hwmon_path(&self) -> &Path
[src]
fn supported_read_sub_functions(&self) -> Vec<SensorSubFunctionType>
[src]
fn name(&self) -> String
[src]
fn read_raw(&self, sub_type: SensorSubFunctionType) -> Result<String, Error>
[src]
fn subfunction_path(&self, sub_type: SensorSubFunctionType) -> PathBuf
[src]
impl TryFrom<ReadOnlyEnergy> for ReadWriteEnergy
[src]
Auto Trait Implementations
impl RefUnwindSafe for ReadOnlyEnergy
impl Send for ReadOnlyEnergy
impl Sync for ReadOnlyEnergy
impl Unpin for ReadOnlyEnergy
impl UnwindSafe for ReadOnlyEnergy
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<S> Sensor<Energy> for S where
S: EnergySensor,
[src]
S: EnergySensor,
fn read_input(&self) -> Result<P, Error>
[src]
fn read_enable(&self) -> Result<bool, Error>
[src]
fn write_enable(&self, enable: bool) -> Result<(), Error> where
Self: WritableSensorBase,
[src]
Self: WritableSensorBase,
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>,