pub struct I2cClient<Ctx: DeviceContext = Normal>(/* private fields */);Expand description
The i2c client representation.
This structure represents the Rust abstraction for a C struct i2c_client. The
implementation abstracts the usage of an existing C struct i2c_client that
gets passed from the C side
§Invariants
A I2cClient instance represents a valid struct i2c_client created by the C portion of
the kernel.
Trait Implementations§
Source§impl AlwaysRefCounted for I2cClient
impl AlwaysRefCounted for I2cClient
Source§impl<Ctx: DeviceContext> AsBusDevice<Ctx> for I2cClient<Ctx>
impl<Ctx: DeviceContext> AsBusDevice<Ctx> for I2cClient<Ctx>
Source§impl Deref for I2cClient<CoreInternal>
impl Deref for I2cClient<CoreInternal>
Source§impl From<&I2cClient<CoreInternal>> for ARef<I2cClient>
impl From<&I2cClient<CoreInternal>> for ARef<I2cClient>
Source§fn from(dev: &I2cClient<CoreInternal>) -> Self
fn from(dev: &I2cClient<CoreInternal>) -> Self
Converts to this type from the input type.
impl Send for I2cClient
impl Sync for I2cClient
Auto Trait Implementations§
impl<Ctx = Normal> !Freeze for I2cClient<Ctx>
impl<Ctx = Normal> !RefUnwindSafe for I2cClient<Ctx>
impl<Ctx = Normal> !Send for I2cClient<Ctx>
impl<Ctx = Normal> !Sync for I2cClient<Ctx>
impl<Ctx = Normal> !Unpin for I2cClient<Ctx>
impl<Ctx> UnwindSafe for I2cClient<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