Enum omnisensor::i2c::I2CDeviceType
source · [−]pub enum I2CDeviceType {
PMBus(PMBusDeviceType),
Hwmon(HwmonDeviceType),
}
Expand description
An enum for an I2C device type.
Variants
PMBus(PMBusDeviceType)
Hwmon(HwmonDeviceType)
Implementations
sourceimpl I2CDeviceType
impl I2CDeviceType
sourcepub fn creates_hwmon(&self) -> bool
pub fn creates_hwmon(&self) -> bool
Whether or not the device type is expected to create a hwmon
subdirectory
when a driver is bound.
sourcefn kernel_type(&self) -> String
fn kernel_type(&self) -> String
Return the (lower-case) form of the string used to write into new_device
.
Trait Implementations
sourceimpl Clone for I2CDeviceType
impl Clone for I2CDeviceType
sourcefn clone(&self) -> I2CDeviceType
fn clone(&self) -> I2CDeviceType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for I2CDeviceType
impl Debug for I2CDeviceType
sourceimpl Hash for I2CDeviceType
impl Hash for I2CDeviceType
sourceimpl PartialEq<I2CDeviceType> for I2CDeviceType
impl PartialEq<I2CDeviceType> for I2CDeviceType
sourcefn eq(&self, other: &I2CDeviceType) -> bool
fn eq(&self, other: &I2CDeviceType) -> bool
impl Copy for I2CDeviceType
impl Eq for I2CDeviceType
impl StructuralEq for I2CDeviceType
impl StructuralPartialEq for I2CDeviceType
Auto Trait Implementations
impl RefUnwindSafe for I2CDeviceType
impl Send for I2CDeviceType
impl Sync for I2CDeviceType
impl Unpin for I2CDeviceType
impl UnwindSafe for I2CDeviceType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more