pub enum ControllerExtRequest {
IsConnected {
responder: ControllerExtIsConnectedResponder,
},
GetEventsSupported {
responder: ControllerExtGetEventsSupportedResponder,
},
SendRawVendorDependentCommand {
pdu_id: u8,
command: Vec<u8>,
responder: ControllerExtSendRawVendorDependentCommandResponder,
},
}
Expand description
Provides additional methods not in Controller
that are strictly for testing and debug.
Variants§
IsConnected
Returns whether there is an underlying connection open with the remote device currently.
Fields
§
responder: ControllerExtIsConnectedResponder
GetEventsSupported
Queries the target and returns what events are supported for notification.
Sends GetCapabilties(0x03 (EVENTS_SUPPORTED
)) command for all events supported by
the negoitated version of AVRCP.
Fields
§
responder: ControllerExtGetEventsSupportedResponder
SendRawVendorDependentCommand
Send raw vendor depedent “Control” command packet to a specific PDU on the remote peer. Returns the entire response packet including the headers or error if the remote endpoint disconnects or does not return a response in set amount of time.
Implementations§
Source§impl ControllerExtRequest
impl ControllerExtRequest
pub fn into_is_connected(self) -> Option<ControllerExtIsConnectedResponder>
pub fn into_get_events_supported( self, ) -> Option<ControllerExtGetEventsSupportedResponder>
pub fn into_send_raw_vendor_dependent_command( self, ) -> Option<(u8, Vec<u8>, ControllerExtSendRawVendorDependentCommandResponder)>
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 ControllerExtRequest
impl !RefUnwindSafe for ControllerExtRequest
impl Send for ControllerExtRequest
impl Sync for ControllerExtRequest
impl Unpin for ControllerExtRequest
impl !UnwindSafe for ControllerExtRequest
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