pub struct ConnectionHandle(pub u16);
Expand description
Newtype for a connection handle.
Values:
- 0x0000 .. 0xEFFF: Unenhanced ATT bearer
- 0xEA00 .. 0xEA3F: Enhanced ATT bearer (the LSB-byte of the parameter is the connection oriented channel index)
Tuple Fields§
§0: u16
Trait Implementations§
Source§impl Clone for ConnectionHandle
impl Clone for ConnectionHandle
Source§fn clone(&self) -> ConnectionHandle
fn clone(&self) -> ConnectionHandle
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 ConnectionHandle
impl Debug for ConnectionHandle
Source§impl PartialEq for ConnectionHandle
impl PartialEq for ConnectionHandle
impl Copy for ConnectionHandle
impl StructuralPartialEq for ConnectionHandle
Auto Trait Implementations§
impl Freeze for ConnectionHandle
impl RefUnwindSafe for ConnectionHandle
impl Send for ConnectionHandle
impl Sync for ConnectionHandle
impl Unpin for ConnectionHandle
impl UnwindSafe for ConnectionHandle
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