pub struct VendorSynchronousProxy { /* private fields */ }
Implementations§
source§impl VendorSynchronousProxy
impl VendorSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<VendorEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<VendorEvent, 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 get_features(&self, ___deadline: Time) -> Result<BtVendorFeatures, Error>
pub fn get_features(&self, ___deadline: Time) -> Result<BtVendorFeatures, Error>
Returns bitmask of the features the vendor supports.
sourcepub fn encode_command(
&self,
command: &BtVendorCommand,
___deadline: Time
) -> Result<VendorEncodeCommandResult, Error>
pub fn encode_command( &self, command: &BtVendorCommand, ___deadline: Time ) -> Result<VendorEncodeCommandResult, Error>
Encodes the vendor HCI command command
using params
and returns the encoded command as
a buffer. params
must contain the parameter struct for the specified command, as
documented in BtVendorCommand
.
Returns an error status if the command is not supported or the paramaters are invalid.
sourcepub fn open_hci(&self, ___deadline: Time) -> Result<VendorOpenHciResult, Error>
pub fn open_hci(&self, ___deadline: Time) -> Result<VendorOpenHciResult, Error>
Open the HCI protocol to the controller. This call may block until the controller has been initialized. Returns ALREADY_BOUND if another client has already connected.
Trait Implementations§
source§impl Debug for VendorSynchronousProxy
impl Debug for VendorSynchronousProxy
source§impl SynchronousProxy for VendorSynchronousProxy
impl SynchronousProxy for VendorSynchronousProxy
§type Proxy = VendorProxy
type Proxy = VendorProxy
The async proxy for the same protocol.
§type Protocol = VendorMarker
type Protocol = VendorMarker
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 VendorSynchronousProxy
impl RefUnwindSafe for VendorSynchronousProxy
impl Send for VendorSynchronousProxy
impl Sync for VendorSynchronousProxy
impl Unpin for VendorSynchronousProxy
impl UnwindSafe for VendorSynchronousProxy
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