pub struct DeviceInfo {
pub id: u16,
pub name: String,
pub address: String,
pub powered: bool,
}Expand description
One controller, as HCIGETDEVLIST and HCIGETDEVINFO describe it.
Fields§
§id: u16The controller index: 0 for hci0.
name: StringThe kernel’s name for it, which is hci followed by the index.
address: StringThe controller’s own address, big-endian as written down.
powered: boolWhether the controller is up, which is HCI_UP in its flags.
Trait Implementations§
Source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
Source§impl Debug for DeviceInfo
impl Debug for DeviceInfo
impl Eq for DeviceInfo
Source§impl PartialEq for DeviceInfo
impl PartialEq for DeviceInfo
impl StructuralPartialEq for DeviceInfo
Auto Trait Implementations§
impl Forget for DeviceInfo
impl Freeze for DeviceInfo
impl Move for DeviceInfo
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnsafeUnpin for DeviceInfo
impl UnwindSafe for DeviceInfo
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