pub enum BondingDelegateRequest {
RestoreBonds {
bonds: Vec<BondingData>,
responder: BondingDelegateRestoreBondsResponder,
},
WatchBonds {
responder: BondingDelegateWatchBondsResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: BondingDelegateControlHandle,
method_type: MethodType,
},
}
Variants§
RestoreBonds
Restores existing bonded devices to the host. An authenticated session will be established for future connections using the provided bonding data.
If bonding data for the LE transport is available, then the host will establish a connection if the peer directs connectable advertisements to us.
If any of the entries in bonds
could not be restored, then they will be returned in
errors
. This can happen for entries that are malformed and for peers that are already
known to the bt-host. An empty errors
list indicates that all bonds were successfully
restored.
WatchBonds
Get the next bonding update. The request will hang until the next update.
Fields
§
responder: BondingDelegateWatchBondsResponder
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: BondingDelegateControlHandle
§
method_type: MethodType
Implementations§
Source§impl BondingDelegateRequest
impl BondingDelegateRequest
pub fn into_restore_bonds( self, ) -> Option<(Vec<BondingData>, BondingDelegateRestoreBondsResponder)>
pub fn into_watch_bonds(self) -> Option<BondingDelegateWatchBondsResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BondingDelegateRequest
impl !RefUnwindSafe for BondingDelegateRequest
impl Send for BondingDelegateRequest
impl Sync for BondingDelegateRequest
impl Unpin for BondingDelegateRequest
impl !UnwindSafe for BondingDelegateRequest
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