pub struct ControllerExtSynchronousProxy { /* private fields */ }
Implementations§
Source§impl ControllerExtSynchronousProxy
impl ControllerExtSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ControllerExtEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ControllerExtEvent, 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 get_events_supported(
&self,
___deadline: MonotonicInstant,
) -> Result<ControllerExtGetEventsSupportedResult, Error>
pub fn get_events_supported( &self, ___deadline: MonotonicInstant, ) -> Result<ControllerExtGetEventsSupportedResult, Error>
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.
Sourcepub fn send_raw_vendor_dependent_command(
&self,
pdu_id: u8,
command: &[u8],
___deadline: MonotonicInstant,
) -> Result<ControllerExtSendRawVendorDependentCommandResult, Error>
pub fn send_raw_vendor_dependent_command( &self, pdu_id: u8, command: &[u8], ___deadline: MonotonicInstant, ) -> Result<ControllerExtSendRawVendorDependentCommandResult, Error>
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.
Trait Implementations§
Source§impl SynchronousProxy for ControllerExtSynchronousProxy
impl SynchronousProxy for ControllerExtSynchronousProxy
Source§type Proxy = ControllerExtProxy
type Proxy = ControllerExtProxy
The async proxy for the same protocol.
Source§type Protocol = ControllerExtMarker
type Protocol = ControllerExtMarker
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 ControllerExtSynchronousProxy
impl RefUnwindSafe for ControllerExtSynchronousProxy
impl Send for ControllerExtSynchronousProxy
impl Sync for ControllerExtSynchronousProxy
impl Unpin for ControllerExtSynchronousProxy
impl UnwindSafe for ControllerExtSynchronousProxy
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