pub enum CentralControllerRequest {
StartScan {
payload: CentralControllerStartScanRequest,
responder: CentralControllerStartScanResponder,
},
ConnectPeripheral {
payload: PeerSelector,
responder: CentralControllerConnectPeripheralResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: CentralControllerControlHandle,
method_type: MethodType,
},
}Variants§
StartScan
Start an LE scan. Results will be streamed to the provided listener. Returns immediately once the scan is initiated.
- error Returns
MISSING_PARAMETERSif the listener is missing. - error Returns
INTERNALif the operation failed (check logs).
ConnectPeripheral
Connect to an LE peer.
- error Returns
INTERNALif the operation failed (check logs).
#[non_exhaustive]_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: CentralControllerControlHandle§
method_type: MethodTypeImplementations§
Source§impl CentralControllerRequest
impl CentralControllerRequest
pub fn into_start_scan( self, ) -> Option<(CentralControllerStartScanRequest, CentralControllerStartScanResponder)>
pub fn into_connect_peripheral( self, ) -> Option<(PeerSelector, CentralControllerConnectPeripheralResponder)>
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 CentralControllerRequest
impl !RefUnwindSafe for CentralControllerRequest
impl Send for CentralControllerRequest
impl Sync for CentralControllerRequest
impl Unpin for CentralControllerRequest
impl UnsafeUnpin for CentralControllerRequest
impl !UnwindSafe for CentralControllerRequest
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