pub struct BondingData {
pub identifier: PeerId,
pub address: Address,
pub local_address: Address,
pub name: Option<String>,
pub data: OneOrBoth<LeBondData, BredrBondData>,
}
Expand description
Data required to store a bond between a Peer and the system, so the bond can be restored later
Fields§
§identifier: PeerId
The persisted unique identifier for this peer.
address: Address
The identity address of the peer.
local_address: Address
The local bt-host identity address that this bond is associated with.
name: Option<String>
The device name obtained using general discovery and name discovery procedures.
data: OneOrBoth<LeBondData, BredrBondData>
Valid Bonding Data must include at least one of LeBondData or BredrBondData.
Implementations§
Source§impl BondingData
impl BondingData
pub fn le(&self) -> Option<&LeBondData>
pub fn bredr(&self) -> Option<&BredrBondData>
Trait Implementations§
Source§impl Clone for BondingData
impl Clone for BondingData
Source§fn clone(&self) -> BondingData
fn clone(&self) -> BondingData
Returns a copy 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 BondingData
impl Debug for BondingData
Source§impl From<BondingData> for BondingData
impl From<BondingData> for BondingData
Source§fn from(bd: BondingData) -> BondingData
fn from(bd: BondingData) -> BondingData
Converts to this type from the input type.
Source§impl InspectData<BondingData> for BondingDataInspect
impl InspectData<BondingData> for BondingDataInspect
fn new(bd: &BondingData, inspect: Node) -> BondingDataInspect
Source§impl IsInspectable for BondingData
impl IsInspectable for BondingData
type I = BondingDataInspect
Source§impl PartialEq for BondingData
impl PartialEq for BondingData
Source§impl TryFrom<(BondingData, PeerId)> for BondingData
impl TryFrom<(BondingData, PeerId)> for BondingData
To convert an external BondingData to an internal Fuchsia bonding data, we must provide a fuchsia PeerId to be used if the external source is missing one (for instance, it is being migrated from a previous, non-Fuchsia system)
Source§impl TryFrom<BondingData> for BondingData
impl TryFrom<BondingData> for BondingData
impl StructuralPartialEq for BondingData
Auto Trait Implementations§
impl Freeze for BondingData
impl RefUnwindSafe for BondingData
impl Send for BondingData
impl Sync for BondingData
impl Unpin for BondingData
impl UnwindSafe for BondingData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)