pub struct PeerId(pub u64);
Expand description
Peers are identified by ids, which should be treated as opaque by service
libraries. Stack implementations should ensure that each PeerId identifies a
single peer over a single instance of the stack - a
[bt_gatt::Central::connect
] should always attempt to connect to the
same peer as long as the PeerId was retrieved after the Central
was
instantiated. PeerIds can be valid longer than that (often if the peer is
bonded)
Tuple Fields§
§0: u64
Trait Implementations§
impl Copy for PeerId
impl Eq for PeerId
impl StructuralPartialEq for PeerId
Auto Trait Implementations§
impl Freeze for PeerId
impl RefUnwindSafe for PeerId
impl Send for PeerId
impl Sync for PeerId
impl Unpin for PeerId
impl UnwindSafe for PeerId
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