Enum i2c_linux_sys::SmbusTransaction
source · [−]#[repr(u32)]
pub enum SmbusTransaction {
Quick,
Byte,
ByteData,
WordData,
ProcCall,
BlockData,
I2cBlockBroken,
BlockProcCall,
I2cBlockData,
}
Expand description
SMBus transaction types (size parameter in the above functions)
Note: these no longer correspond to the (arbitrary) PIIX4 internal codes!
Variants
Quick
Byte
ByteData
WordData
ProcCall
BlockData
I2cBlockBroken
BlockProcCall
SMBus 2.0
I2cBlockData
Trait Implementations
sourceimpl Clone for SmbusTransaction
impl Clone for SmbusTransaction
sourcefn clone(&self) -> SmbusTransaction
fn clone(&self) -> SmbusTransaction
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 more
sourceimpl Debug for SmbusTransaction
impl Debug for SmbusTransaction
sourceimpl Hash for SmbusTransaction
impl Hash for SmbusTransaction
sourceimpl Ord for SmbusTransaction
impl Ord for SmbusTransaction
sourceimpl PartialEq<SmbusTransaction> for SmbusTransaction
impl PartialEq<SmbusTransaction> for SmbusTransaction
sourceimpl PartialOrd<SmbusTransaction> for SmbusTransaction
impl PartialOrd<SmbusTransaction> for SmbusTransaction
sourcefn partial_cmp(&self, other: &SmbusTransaction) -> Option<Ordering>
fn partial_cmp(&self, other: &SmbusTransaction) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for SmbusTransaction
impl Eq for SmbusTransaction
impl StructuralEq for SmbusTransaction
impl StructuralPartialEq for SmbusTransaction
Auto Trait Implementations
impl RefUnwindSafe for SmbusTransaction
impl Send for SmbusTransaction
impl Sync for SmbusTransaction
impl Unpin for SmbusTransaction
impl UnwindSafe for SmbusTransaction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more