pub enum BrowseControllerExtRequest {
IsConnected {
responder: BrowseControllerExtIsConnectedResponder,
},
SendRawBrowseCommand {
pdu_id: u8,
command: Vec<u8>,
responder: BrowseControllerExtSendRawBrowseCommandResponder,
},
}
Expand description
Provides additional methods not in BrowseController
that are strictly for
testing and debug.
Variants§
IsConnected
Returns whether there is an underlying connection open with the remote device currently.
Fields
§
responder: BrowseControllerExtIsConnectedResponder
SendRawBrowseCommand
Send raw AVRCP “browse” 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.
- request
command
contains a specific browse command’s encoded parameters.
Implementations§
Source§impl BrowseControllerExtRequest
impl BrowseControllerExtRequest
pub fn into_is_connected( self, ) -> Option<BrowseControllerExtIsConnectedResponder>
pub fn into_send_raw_browse_command( self, ) -> Option<(u8, Vec<u8>, BrowseControllerExtSendRawBrowseCommandResponder)>
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 BrowseControllerExtRequest
impl !RefUnwindSafe for BrowseControllerExtRequest
impl Send for BrowseControllerExtRequest
impl Sync for BrowseControllerExtRequest
impl Unpin for BrowseControllerExtRequest
impl !UnwindSafe for BrowseControllerExtRequest
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