pub enum BootstrapRequest {
AddIdentities {
identities: Vec<Identity>,
control_handle: BootstrapControlHandle,
},
Commit {
responder: BootstrapCommitResponder,
},
}
Expand description
Protocol used to initialize persistent core Bluetooth data. This protocol populates data that determine the identity of this device as perceived by other Bluetooth devices.
This protocol can be obtained only before the core Bluetooth host subsystem has generated its own identity. Once initial data is committed, this capability becomes unavailable and remains unavailable even if new Bluetooth adapters are attached.
Due to the privacy and bonding secrets involved, as well as the capability to make this device assume the Bluetooth identity of another device, this protocol should only be exposed to privileged components that can vouchsafe the origin of the data.
Variants§
AddIdentities
Adds identities to be added to the unpopulated Bluetooth stack.
Repeated calls will append identities.
Commit
Writes all added bootstrapping data to the Bluetooth core stack. The server will close the channel regardless of success. Returns without error if successful and the stack will be considered initialized even if no bootstrapping data was written. Returns INVALID_HOST_IDENTITY if any host or bonded peer data is insufficient or inconsistent, with no effect (the client may retry by obtaining another protocol handle).
Fields
responder: BootstrapCommitResponder
Implementations§
Source§impl BootstrapRequest
impl BootstrapRequest
pub fn into_add_identities( self, ) -> Option<(Vec<Identity>, BootstrapControlHandle)>
pub fn into_commit(self) -> Option<BootstrapCommitResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL