pub struct BrowseControllerExtSynchronousProxy { /* private fields */ }
Implementations§
Source§impl BrowseControllerExtSynchronousProxy
impl BrowseControllerExtSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<BrowseControllerExtEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<BrowseControllerExtEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn is_connected(&self, ___deadline: MonotonicInstant) -> Result<bool, Error>
pub fn is_connected(&self, ___deadline: MonotonicInstant) -> Result<bool, Error>
Returns whether there is an underlying connection open with the remote device currently.
Sourcepub fn send_raw_browse_command(
&self,
pdu_id: u8,
command: &[u8],
___deadline: MonotonicInstant,
) -> Result<BrowseControllerExtSendRawBrowseCommandResult, Error>
pub fn send_raw_browse_command( &self, pdu_id: u8, command: &[u8], ___deadline: MonotonicInstant, ) -> Result<BrowseControllerExtSendRawBrowseCommandResult, Error>
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.
Trait Implementations§
Source§impl SynchronousProxy for BrowseControllerExtSynchronousProxy
impl SynchronousProxy for BrowseControllerExtSynchronousProxy
Source§type Proxy = BrowseControllerExtProxy
type Proxy = BrowseControllerExtProxy
The async proxy for the same protocol.
Source§type Protocol = BrowseControllerExtMarker
type Protocol = BrowseControllerExtMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for BrowseControllerExtSynchronousProxy
impl RefUnwindSafe for BrowseControllerExtSynchronousProxy
impl Send for BrowseControllerExtSynchronousProxy
impl Sync for BrowseControllerExtSynchronousProxy
impl Unpin for BrowseControllerExtSynchronousProxy
impl UnwindSafe for BrowseControllerExtSynchronousProxy
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