pub enum VirtualControllerRequest {
CreateEmulator {
responder: VirtualControllerCreateEmulatorResponder,
},
CreateLoopbackDevice {
payload: VirtualControllerCreateLoopbackDeviceRequest,
control_handle: VirtualControllerControlHandle,
},
_UnknownMethod {
ordinal: u64,
control_handle: VirtualControllerControlHandle,
method_type: MethodType,
},
}
Expand description
Used for spawning virtual Bluetooth devices.
Variants§
CreateEmulator
Creates a child device, and returns the name of the child created.
Fields
§
responder: VirtualControllerCreateEmulatorResponder
CreateLoopbackDevice
Creates a virtual Bluetooth serial device, speaking the BT HCI UART protocol on the provided handle. The zircon channel is closed in the event of an error.
Fields
§
control_handle: VirtualControllerControlHandle
_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: VirtualControllerControlHandle
§
method_type: MethodType
Implementations§
Source§impl VirtualControllerRequest
impl VirtualControllerRequest
pub fn into_create_emulator( self, ) -> Option<VirtualControllerCreateEmulatorResponder>
pub fn into_create_loopback_device( self, ) -> Option<(VirtualControllerCreateLoopbackDeviceRequest, VirtualControllerControlHandle)>
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 VirtualControllerRequest
impl !RefUnwindSafe for VirtualControllerRequest
impl Send for VirtualControllerRequest
impl Sync for VirtualControllerRequest
impl Unpin for VirtualControllerRequest
impl !UnwindSafe for VirtualControllerRequest
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