pub struct ConnectionComplete {
pub status: Status,
pub conn_handle: ConnectionHandle,
pub bd_addr: BdAddr,
pub link_type: LinkType,
pub encryption_enabled: bool,
}
Expand description
The Connection Complete event indicates to both of the Hosts forming the connection that a new connection has been established.
This event also indicates to the Host which issued the connection command and then received a Command Status event, if the issued command failed or was successful.
Fields§
§status: Status
Did the connection attempt fail, and if so, how?
conn_handle: ConnectionHandle
Identifies a connection between two BR/ EDR Controllers. This is used as an identifier for transmitting and receiving voice or data.
bd_addr: BdAddr
BD ADDR of the other connected device forming the connection.
link_type: LinkType
Type of connection.
encryption_enabled: bool
True if the connection is encrypted.
Trait Implementations§
Source§impl Clone for ConnectionComplete
impl Clone for ConnectionComplete
Source§fn clone(&self) -> ConnectionComplete
fn clone(&self) -> ConnectionComplete
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConnectionComplete
impl Debug for ConnectionComplete
impl Copy for ConnectionComplete
Auto Trait Implementations§
impl Freeze for ConnectionComplete
impl RefUnwindSafe for ConnectionComplete
impl Send for ConnectionComplete
impl Sync for ConnectionComplete
impl Unpin for ConnectionComplete
impl UnwindSafe for ConnectionComplete
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