Enum stm32_metapac::i2c::vals::Dir
#[repr(u8)]pub enum Dir {
WRITE = 0,
READ = 1,
}
Variants§
WRITE = 0
Write transfer, slave enters receiver mode
READ = 1
Read transfer, slave enters transmitter mode
Implementations§
Trait Implementations§
§impl Ord for Dir
impl Ord for Dir
§impl PartialOrd for Dir
impl PartialOrd for Dir
impl Copy for Dir
impl Eq for Dir
impl StructuralPartialEq for Dir
Auto Trait Implementations§
impl Freeze for Dir
impl RefUnwindSafe for Dir
impl Send for Dir
impl Sync for Dir
impl Unpin for Dir
impl UnwindSafe for Dir
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)