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<'a> Deref for I2cAdapter<CoreInternal<'a>>
impl<'a> Deref for I2cAdapter<CoreInternal<'a>>
Source§impl<'a> Deref for I2cAdapter<Core<'a>>
impl<'a> Deref for I2cAdapter<Core<'a>>
Source§impl Deref for I2cAdapter<Bound>
impl Deref for I2cAdapter<Bound>
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<'a> From<&I2cAdapter<Core<'a>>> for ARef<I2cAdapter>
impl<'a> From<&I2cAdapter<Core<'a>>> for ARef<I2cAdapter>
Source§fn from(dev: &I2cAdapter<Core<'a>>) -> Self
fn from(dev: &I2cAdapter<Core<'a>>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&I2cAdapter<CoreInternal<'a>>> for ARef<I2cAdapter>
impl<'a> From<&I2cAdapter<CoreInternal<'a>>> for ARef<I2cAdapter>
Source§fn from(dev: &I2cAdapter<CoreInternal<'a>>) -> Self
fn from(dev: &I2cAdapter<CoreInternal<'a>>) -> 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 = Normal> !UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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