#[non_exhaustive]pub enum Request {
Write(u16),
Read(u16),
Stop(u16),
GeneralCall,
SmbusAlert,
}Expand description
I2C target events
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Write(u16)
Controller wants to write data to this Target
Read(u16)
Controller wants to read data from this Target
Stop(u16)
Controller issued Stop condition for this Target
GeneralCall
Controller issued a General Call
SmbusAlert
Controller issued SMBUS Alert
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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