[−][src]Struct libmedium::sensors::ReadWriteCurr
Struct that represents a read/write current sensor.
Trait Implementations
impl Clone for ReadWriteCurr
[src]
fn clone(&self) -> ReadWriteCurr
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl CurrSensor for ReadWriteCurr
[src]
impl Debug for ReadWriteCurr
[src]
impl From<ReadWriteCurr> for ReadOnlyCurr
[src]
fn from(write_curr: ReadWriteCurr) -> ReadOnlyCurr
[src]
impl SensorBase for ReadWriteCurr
[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<ReadOnlyCurr> for ReadWriteCurr
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: ReadOnlyCurr) -> Result<Self, Self::Error>
[src]
impl WritableSensorBase for ReadWriteCurr
[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 ReadWriteCurr
impl Send for ReadWriteCurr
impl Sync for ReadWriteCurr
impl Unpin for ReadWriteCurr
impl UnwindSafe for ReadWriteCurr
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<S> Average<Current> for S where
S: CurrSensor,
[src]
S: CurrSensor,
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<Current> for S where
S: CurrSensor,
[src]
S: CurrSensor,
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<Current> for S where
S: CurrSensor,
[src]
S: CurrSensor,
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> LowCrit<Current> for S where
S: CurrSensor,
[src]
S: CurrSensor,
fn read_lcrit(&self) -> Result<P, Error>
[src]
fn write_lcrit(&self, lcrit: P) -> Result<(), Error> where
Self: WritableSensorBase,
[src]
Self: WritableSensorBase,
impl<S> Lowest<Current> for S where
S: CurrSensor,
[src]
S: CurrSensor,
fn read_lowest(&self) -> Result<P, Error>
[src]
impl<S> Max<Current> for S where
S: CurrSensor,
[src]
S: CurrSensor,
fn read_max(&self) -> Result<P, Error>
[src]
fn write_max(&self, max: P) -> Result<(), Error> where
Self: WritableSensorBase,
[src]
Self: WritableSensorBase,
impl<S> Min<Current> for S where
S: CurrSensor,
[src]
S: CurrSensor,
fn read_min(&self) -> Result<P, Error>
[src]
fn write_min(&self, min: P) -> Result<(), Error> where
Self: WritableSensorBase,
[src]
Self: WritableSensorBase,
impl<S> Sensor<Current> for S where
S: CurrSensor,
[src]
S: CurrSensor,
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>,