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: MonotonicInstant,
) -> Result<VendorEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> 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: MonotonicInstant,
) -> Result<VendorFeatures, Error>
pub fn get_features( &self, ___deadline: MonotonicInstant, ) -> Result<VendorFeatures, Error>
Returns the Vendor Features supported by this controller.
Sourcepub fn encode_command(
&self,
payload: &VendorCommand,
___deadline: MonotonicInstant,
) -> Result<VendorEncodeCommandResult, Error>
pub fn encode_command( &self, payload: &VendorCommand, ___deadline: MonotonicInstant, ) -> Result<VendorEncodeCommandResult, Error>
Encode the vendor HCI command and return the encoded command.
See VendorCommand
for possible commands and parameters.
- error
ZX_ERR_NOT_SUPPORTED
The command is not supported. - error
ZX_ERR_INVALID_ARGS
The parameters of the command are invalid.
Sourcepub fn open_hci(
&self,
___deadline: MonotonicInstant,
) -> Result<VendorOpenHciResult, Error>
pub fn open_hci( &self, ___deadline: MonotonicInstant, ) -> Result<VendorOpenHciResult, Error>
Deprecated. 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.
Sourcepub fn open_hci_transport(
&self,
___deadline: MonotonicInstant,
) -> Result<VendorOpenHciTransportResult, Error>
pub fn open_hci_transport( &self, ___deadline: MonotonicInstant, ) -> Result<VendorOpenHciTransportResult, Error>
Open the HciTransport protocol to the controller. This call may block until the controller has been initialized. Returns ALREADY_BOUND if another client has already connected.
Sourcepub fn open_snoop(
&self,
___deadline: MonotonicInstant,
) -> Result<VendorOpenSnoopResult, Error>
pub fn open_snoop( &self, ___deadline: MonotonicInstant, ) -> Result<VendorOpenSnoopResult, Error>
Open the Snoop protocol to the transport driver. 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
Source§type Proxy = VendorProxy
type Proxy = VendorProxy
Source§type Protocol = VendorMarker
type Protocol = VendorMarker
Proxy
controls.