[−][src]Struct libmedium::sensors::ReadWritePower
Struct that represents a read/write power sensor.
Trait Implementations
impl Clone for ReadWritePower
[src]
fn clone(&self) -> ReadWritePower
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ReadWritePower
[src]
impl From<ReadWritePower> for ReadOnlyPower
[src]
fn from(write_power: ReadWritePower) -> ReadOnlyPower
[src]
impl PowerSensor for ReadWritePower
[src]
fn read_accuracy(&self) -> Result<Accuracy, Error>
[src]
fn read_cap(&self) -> Result<Power, Error>
[src]
fn read_cap_max(&self) -> Result<Power, Error>
[src]
fn read_cap_min(&self) -> Result<Power, Error>
[src]
fn read_cap_hyst(&self) -> Result<Power, Error>
[src]
fn read_average_interval(&self) -> Result<Duration, Error>
[src]
fn read_average_interval_max(&self) -> Result<Duration, Error>
[src]
fn read_average_interval_min(&self) -> Result<Duration, Error>
[src]
fn read_average_highest(&self) -> Result<Power, Error>
[src]
fn read_average_lowest(&self) -> Result<Power, Error>
[src]
fn read_average_max(&self) -> Result<Power, Error>
[src]
fn read_average_min(&self) -> Result<Power, Error>
[src]
fn write_cap(&self, cap: Power) -> Result<(), Error> where
Self: WritableSensorBase,
[src]
Self: WritableSensorBase,
fn write_cap_hyst(&self, cap_hyst: Power) -> Result<(), Error> where
Self: WritableSensorBase,
[src]
Self: WritableSensorBase,
fn write_average_interval(&self, interval: Duration) -> Result<(), Error> where
Self: WritableSensorBase,
[src]
Self: WritableSensorBase,
impl SensorBase for ReadWritePower
[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<ReadOnlyPower> for ReadWritePower
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: ReadOnlyPower) -> Result<Self, Self::Error>
[src]
impl WritableSensorBase for ReadWritePower
[src]
fn supported_write_sub_functions(&self) -> Vec<SensorSubFunctionType>
[src]
fn write_raw(
&self,
sub_type: SensorSubFunctionType,
raw_value: &str
) -> Result<(), Error>
[src]
&self,
sub_type: SensorSubFunctionType,
raw_value: &str
) -> Result<(), Error>
fn reset_history(&self) -> Result<(), Error>
[src]
fn state(&self) -> Result<SensorState, Error>
[src]
fn write_state(&self, state: &SensorState) -> Result<(), Error>
[src]
fn write_state_lossy(&self, state: &SensorState) -> Result<(), Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for ReadWritePower
impl Send for ReadWritePower
impl Sync for ReadWritePower
impl Unpin for ReadWritePower
impl UnwindSafe for ReadWritePower
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<S> Average<Power> for S where
S: PowerSensor,
[src]
S: PowerSensor,
fn read_average(&self) -> Result<P, Error>
[src]
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<S> Crit<Power> for S where
S: PowerSensor,
[src]
S: PowerSensor,
fn read_crit(&self) -> Result<P, Error>
[src]
fn write_crit(&self, crit: P) -> Result<(), Error> where
Self: WritableSensorBase,
[src]
Self: WritableSensorBase,
impl<T> From<T> for T
[src]
impl<S> Highest<Power> for S where
S: PowerSensor,
[src]
S: PowerSensor,
fn read_highest(&self) -> Result<P, Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<S> Lowest<Power> for S where
S: PowerSensor,
[src]
S: PowerSensor,
fn read_lowest(&self) -> Result<P, Error>
[src]
impl<S> Max<Power> for S where
S: PowerSensor,
[src]
S: PowerSensor,
fn read_max(&self) -> Result<P, Error>
[src]
fn write_max(&self, max: P) -> Result<(), Error> where
Self: WritableSensorBase,
[src]
Self: WritableSensorBase,
impl<S> Sensor<Power> for S where
S: PowerSensor,
[src]
S: PowerSensor,
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>,