pub struct DeviceAddress(/* private fields */);Expand description
An address that was assigned to a device by the host.
The address may or may not represent a device that is currently attached. Normally device addresses are not reused, except when the address counter overflows.
This type only represents assigned addresses, and thus cannot represent the special address 0. Address 0 is only used to assign an address to the device during enumeration, and should not be used by any drivers.
Trait Implementations§
Source§impl Clone for DeviceAddress
impl Clone for DeviceAddress
Source§fn clone(&self) -> DeviceAddress
fn clone(&self) -> DeviceAddress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DeviceAddress
Source§impl Format for DeviceAddress
impl Format for DeviceAddress
Source§impl From<DeviceAddress> for u16
impl From<DeviceAddress> for u16
Source§fn from(value: DeviceAddress) -> Self
fn from(value: DeviceAddress) -> Self
Converts to this type from the input type.
Source§impl From<DeviceAddress> for u8
impl From<DeviceAddress> for u8
Source§fn from(value: DeviceAddress) -> Self
fn from(value: DeviceAddress) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DeviceAddress
impl PartialEq for DeviceAddress
impl StructuralPartialEq for DeviceAddress
Auto Trait Implementations§
impl Freeze for DeviceAddress
impl RefUnwindSafe for DeviceAddress
impl Send for DeviceAddress
impl Sync for DeviceAddress
impl Unpin for DeviceAddress
impl UnsafeUnpin for DeviceAddress
impl UnwindSafe for DeviceAddress
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