pub struct BusInfo<'a> {
pub bus: u8,
pub speed_khz: u16,
pub max_data: u16,
pub max_ops: u8,
pub name: &'a str,
}Expand description
One PROP_I2C_BUSES item.
BUS (UINT8) | SPEED_KHZ (UINT16) | MAX_DATA (UINT16) | MAX_OPS (UINT8) | NAME (UTF-8)Fields§
§bus: u8§speed_khz: u16The clock the device drives the bus at.
max_data: u16The largest sum of write-data and read-length octets one transfer may carry.
max_ops: u8The largest operation count one transfer may carry.
name: &'a strDisplay text for the bus: its controller and pins, typically.
Implementations§
Trait Implementations§
impl<'a> Copy for BusInfo<'a>
impl<'a> Eq for BusInfo<'a>
impl<'a> StructuralPartialEq for BusInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for BusInfo<'a>
impl<'a> RefUnwindSafe for BusInfo<'a>
impl<'a> Send for BusInfo<'a>
impl<'a> Sync for BusInfo<'a>
impl<'a> Unpin for BusInfo<'a>
impl<'a> UnwindSafe for BusInfo<'a>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)