pub struct VendorProxy { /* private fields */ }
Implementations§
Source§impl VendorProxy
impl VendorProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.hardware.bluetooth/Vendor.
Sourcepub fn take_event_stream(&self) -> VendorEventStream
pub fn take_event_stream(&self) -> VendorEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn get_features(
&self,
) -> QueryResponseFut<VendorFeatures, DefaultFuchsiaResourceDialect>
pub fn get_features( &self, ) -> QueryResponseFut<VendorFeatures, DefaultFuchsiaResourceDialect>
Returns the Vendor Features supported by this controller.
Sourcepub fn encode_command(
&self,
payload: &VendorCommand,
) -> QueryResponseFut<VendorEncodeCommandResult, DefaultFuchsiaResourceDialect>
pub fn encode_command( &self, payload: &VendorCommand, ) -> QueryResponseFut<VendorEncodeCommandResult, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<VendorOpenHciResult, DefaultFuchsiaResourceDialect>
pub fn open_hci( &self, ) -> QueryResponseFut<VendorOpenHciResult, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<VendorOpenHciTransportResult, DefaultFuchsiaResourceDialect>
pub fn open_hci_transport( &self, ) -> QueryResponseFut<VendorOpenHciTransportResult, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<VendorOpenSnoopResult, DefaultFuchsiaResourceDialect>
pub fn open_snoop( &self, ) -> QueryResponseFut<VendorOpenSnoopResult, DefaultFuchsiaResourceDialect>
Open the Snoop protocol to the transport driver. Returns ALREADY_BOUND if another client has already connected.
Trait Implementations§
Source§impl Clone for VendorProxy
impl Clone for VendorProxy
Source§fn clone(&self) -> VendorProxy
fn clone(&self) -> VendorProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for VendorProxy
impl Debug for VendorProxy
Source§impl Proxy for VendorProxy
impl Proxy for VendorProxy
Source§type Protocol = VendorMarker
type Protocol = VendorMarker
Proxy
controls.