pub struct I2cTarget { /* private fields */ }Expand description
A registered I2C target.
Created by I2cTargetData::register or I2c::register_target. Holds
the device pointer and config so it can unregister cleanly. Dropping
without calling unregister will not
automatically unregister — the caller must manage the lifetime explicitly.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for I2cTarget
impl RefUnwindSafe for I2cTarget
impl !Sync for I2cTarget
impl Unpin for I2cTarget
impl UnwindSafe for I2cTarget
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