pub enum ConnectionRole {
Central,
Peripheral,
}
Expand description
Connection roles as returned by the LE Connection Complete event.
Variants§
Central
The device is the central device for the connection.
The Bluetooth spec refers to these as “master” devices.
Peripheral
The device is a peripheral device for the connection.
The Bluetooth spec refers to these as “slave” devices.
Trait Implementations§
Source§impl Clone for ConnectionRole
impl Clone for ConnectionRole
Source§fn clone(&self) -> ConnectionRole
fn clone(&self) -> ConnectionRole
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 ConnectionRole
impl Debug for ConnectionRole
Source§impl PartialEq for ConnectionRole
impl PartialEq for ConnectionRole
Source§impl TryFrom<u8> for ConnectionRole
impl TryFrom<u8> for ConnectionRole
impl Copy for ConnectionRole
impl StructuralPartialEq for ConnectionRole
Auto Trait Implementations§
impl Freeze for ConnectionRole
impl RefUnwindSafe for ConnectionRole
impl Send for ConnectionRole
impl Sync for ConnectionRole
impl Unpin for ConnectionRole
impl UnwindSafe for ConnectionRole
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