pub struct I2cAdapter<Ctx: DeviceContext = Normal>(/* private fields */);Expand description
The i2c adapter representation.
This structure represents the Rust abstraction for a C struct i2c_adapter. The
implementation abstracts the usage of an existing C struct i2c_adapter that
gets passed from the C side
§Invariants
A I2cAdapter instance represents a valid struct i2c_adapter created by the C portion of
the kernel.
Implementations§
Trait Implementations§
Source§impl AlwaysRefCounted for I2cAdapter
impl AlwaysRefCounted for I2cAdapter
Source§impl Deref for I2cAdapter<Bound>
impl Deref for I2cAdapter<Bound>
Source§impl Deref for I2cAdapter<Core>
impl Deref for I2cAdapter<Core>
Source§impl Deref for I2cAdapter<CoreInternal>
impl Deref for I2cAdapter<CoreInternal>
Source§impl From<&I2cAdapter<Bound>> for ARef<I2cAdapter>
impl From<&I2cAdapter<Bound>> for ARef<I2cAdapter>
Source§fn from(dev: &I2cAdapter<Bound>) -> Self
fn from(dev: &I2cAdapter<Bound>) -> Self
Converts to this type from the input type.
Source§impl From<&I2cAdapter<Core>> for ARef<I2cAdapter>
impl From<&I2cAdapter<Core>> for ARef<I2cAdapter>
Source§fn from(dev: &I2cAdapter<Core>) -> Self
fn from(dev: &I2cAdapter<Core>) -> Self
Converts to this type from the input type.
Source§impl From<&I2cAdapter<CoreInternal>> for ARef<I2cAdapter>
impl From<&I2cAdapter<CoreInternal>> for ARef<I2cAdapter>
Source§fn from(dev: &I2cAdapter<CoreInternal>) -> Self
fn from(dev: &I2cAdapter<CoreInternal>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<Ctx = Normal> !Freeze for I2cAdapter<Ctx>
impl<Ctx = Normal> !RefUnwindSafe for I2cAdapter<Ctx>
impl<Ctx = Normal> !Send for I2cAdapter<Ctx>
impl<Ctx = Normal> !Sync for I2cAdapter<Ctx>
impl<Ctx = Normal> !Unpin for I2cAdapter<Ctx>
impl<Ctx> UnwindSafe for I2cAdapter<Ctx>where
Ctx: UnwindSafe,
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> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot. Read more