[−][src]Struct libmedium::sensors::ReadWritePwm
Struct that represents a read/write pwm sensor.
Trait Implementations
impl Clone for ReadWritePwm
[src]
fn clone(&self) -> ReadWritePwm
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ReadWritePwm
[src]
impl From<ReadWritePwm> for ReadOnlyPwm
[src]
fn from(write_pwm: ReadWritePwm) -> ReadOnlyPwm
[src]
impl PwmSensor for ReadWritePwm
[src]
fn read_pwm(&self) -> Result<Pwm, Error>
[src]
fn read_enable(&self) -> Result<PwmEnable, Error>
[src]
fn read_mode(&self) -> Result<PwmMode, Error>
[src]
fn read_frequency(&self) -> Result<Frequency, Error>
[src]
fn write_pwm(&self, pwm: Pwm) -> Result<(), Error> where
Self: WritableSensorBase,
[src]
Self: WritableSensorBase,
fn write_enable(&self, enable: PwmEnable) -> Result<(), Error> where
Self: WritableSensorBase,
[src]
Self: WritableSensorBase,
fn write_mode(&self, mode: PwmMode) -> Result<(), Error> where
Self: WritableSensorBase,
[src]
Self: WritableSensorBase,
fn write_frequency(&self, freq: Frequency) -> Result<(), Error> where
Self: WritableSensorBase,
[src]
Self: WritableSensorBase,
impl SensorBase for ReadWritePwm
[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<ReadOnlyPwm> for ReadWritePwm
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: ReadOnlyPwm) -> Result<Self, Self::Error>
[src]
impl WritableSensorBase for ReadWritePwm
[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 ReadWritePwm
impl Send for ReadWritePwm
impl Sync for ReadWritePwm
impl Unpin for ReadWritePwm
impl UnwindSafe for ReadWritePwm
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>,