pub enum RootcanalClientControllerRequest {
Start {
payload: RootcanalClientControllerStartRequest,
responder: RootcanalClientControllerStartResponder,
},
Stop {
responder: RootcanalClientControllerStopResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: RootcanalClientControllerControlHandle,
method_type: MethodType,
},
}
Expand description
Controls instances of bt-rootcanal, a tool that proxies HCI traffic between Fuchsia Bluetooth and a Rootcanal server.
Variants§
Start
Start bt-rootcanal if it is not already running.
- request
ip
is the IP address of the host running the Rootcanal server. - request
port
is the port on the host on which the Rootcanal server is listening.
- error Returns
ALREADY_RUNNING
if bt-rootcanal is already running. - error Returns
INVALID_IP
if the IP address could not be parsed. - error Returns
CONNECTION_FAILED
if a connection to the Rootcanal server could not be established. - error Returns
FAILED
if there was an internal error starting bt-rootcanal.
Fields
§
responder: RootcanalClientControllerStartResponder
Stop
Stop bt-rootcanal if running.
Fields
§
responder: RootcanalClientControllerStopResponder
_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: RootcanalClientControllerControlHandle
§
method_type: MethodType
Implementations§
Source§impl RootcanalClientControllerRequest
impl RootcanalClientControllerRequest
pub fn into_start( self, ) -> Option<(RootcanalClientControllerStartRequest, RootcanalClientControllerStartResponder)>
pub fn into_stop(self) -> Option<RootcanalClientControllerStopResponder>
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 RootcanalClientControllerRequest
impl !RefUnwindSafe for RootcanalClientControllerRequest
impl Send for RootcanalClientControllerRequest
impl Sync for RootcanalClientControllerRequest
impl Unpin for RootcanalClientControllerRequest
impl !UnwindSafe for RootcanalClientControllerRequest
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