pub struct HciConnection {
pub handle: u16,
pub remote_addr: BdAddr,
pub link_type: u8,
pub state: ConnectionState,
pub encrypted: bool,
pub link_key: [u8; 16],
pub has_link_key: bool,
}Expand description
An active HCI connection
Fields§
§handle: u16Connection handle (assigned by controller)
remote_addr: BdAddrRemote device address
link_type: u8Connection type (ACL = 0x01, SCO = 0x00)
state: ConnectionStateCurrent state
encrypted: boolEncryption enabled
link_key: [u8; 16]Link key (stub – 16 bytes)
has_link_key: boolWhether a link key is present
Implementations§
Source§impl HciConnection
impl HciConnection
Trait Implementations§
Source§impl Clone for HciConnection
impl Clone for HciConnection
Source§fn clone(&self) -> HciConnection
fn clone(&self) -> HciConnection
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HciConnection
impl Debug for HciConnection
impl Copy for HciConnection
Auto Trait Implementations§
impl Freeze for HciConnection
impl RefUnwindSafe for HciConnection
impl Send for HciConnection
impl Sync for HciConnection
impl Unpin for HciConnection
impl UnwindSafe for HciConnection
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§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)