pub struct I2cBoardInfo(/* private fields */);Expand description
The i2c board info representation
This structure represents the Rust abstraction for a C struct i2c_board_info structure,
which is used for manual I2C client creation.
Implementations§
Source§impl I2cBoardInfo
impl I2cBoardInfo
Sourcepub const fn new(type_: &'static CStr, addr: u16) -> Self
pub const fn new(type_: &'static CStr, addr: u16) -> Self
Create a new I2cBoardInfo for a kernel driver.
Auto Trait Implementations§
impl Freeze for I2cBoardInfo
impl RefUnwindSafe for I2cBoardInfo
impl !Send for I2cBoardInfo
impl !Sync for I2cBoardInfo
impl Unpin for I2cBoardInfo
impl UnwindSafe for I2cBoardInfo
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