[][src]Struct libmedium::units::AngularVelocity

pub struct AngularVelocity(_);

Struct that represents a frequency.

Implementations

impl AngularVelocity[src]

pub fn from_rpm(rpm: u32) -> Self[src]

Create a AngularVelocity struct from a value measuring times per minute.

pub fn as_rpm(self) -> u32[src]

Return this AngularVelocity's value in times per minute.

Trait Implementations

impl Add<AngularVelocity> for AngularVelocity[src]

type Output = Self

The resulting type after applying the + operator.

impl Clone for AngularVelocity[src]

impl Copy for AngularVelocity[src]

impl Debug for AngularVelocity[src]

impl Display for AngularVelocity[src]

impl<T: Into<u32>> Div<T> for AngularVelocity[src]

type Output = Self

The resulting type after applying the / operator.

impl Eq for AngularVelocity[src]

impl Hash for AngularVelocity[src]

impl<S: FanSensor> Max<AngularVelocity> for S[src]

impl<S: FanSensor> Min<AngularVelocity> for S[src]

impl<T: Into<u32>> Mul<T> for AngularVelocity[src]

type Output = Self

The resulting type after applying the * operator.

impl Ord for AngularVelocity[src]

impl PartialEq<AngularVelocity> for AngularVelocity[src]

impl PartialOrd<AngularVelocity> for AngularVelocity[src]

impl Raw for AngularVelocity[src]

impl<S: FanSensor + Faulty> Sensor<AngularVelocity> for S[src]

fn read_input(&self) -> Result<AngularVelocity, Error>[src]

Reads the input subfunction of this fan sensor. Returns an error, if this sensor doesn't support the subfunction.

impl StructuralEq for AngularVelocity[src]

impl StructuralPartialEq for AngularVelocity[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<S> Max<AngularVelocity> for S where
    S: FanSensor
[src]

impl<S> Max<AngularVelocity> for S where
    S: FanSensor
[src]

impl<S> Min<AngularVelocity> for S where
    S: FanSensor
[src]

impl<S> Min<AngularVelocity> for S where
    S: FanSensor
[src]

impl<S> Sensor<AngularVelocity> for S where
    S: FanSensor + Faulty
[src]

fn read_input(&Self) -> Result<AngularVelocity, Error>[src]

Reads the input subfunction of this fan sensor. Returns an error, if this sensor doesn't support the subfunction.

impl<S> Sensor<AngularVelocity> for S where
    S: FanSensor + Faulty
[src]

fn read_input(&Self) -> Result<AngularVelocity, Error>[src]

Reads the input subfunction of this fan sensor. Returns an error, if this sensor doesn't support the subfunction.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.