pub struct BusInfo {
pub bus: Option<BusType>,
pub address: Option<DeviceAddress>,
pub address_stability: Option<DeviceAddressStability>,
}
Fields§
§bus: Option<BusType>
§address: Option<DeviceAddress>
§address_stability: Option<DeviceAddressStability>
Trait Implementations§
Source§impl Encodable for BusInfo
impl Encodable for BusInfo
Source§type Encoded = WireBusInfo
type Encoded = WireBusInfo
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl TakeFrom<WireBusInfo> for BusInfo
impl TakeFrom<WireBusInfo> for BusInfo
Source§fn take_from(from: &WireBusInfo) -> Self
fn take_from(from: &WireBusInfo) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for BusInfo
impl RefUnwindSafe for BusInfo
impl Send for BusInfo
impl Sync for BusInfo
impl Unpin for BusInfo
impl UnwindSafe for BusInfo
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