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_SUPPORTEDThe command is not supported. - error
ZX_ERR_INVALID_ARGSThe parameters of the command are invalid.
Sourcepub fn open_hci(
&self,
) -> QueryResponseFut<VendorOpenHciResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn open_hci( &self, ) -> QueryResponseFut<VendorOpenHciResult, DefaultFuchsiaResourceDialect> ⓘ
No longer supported - use OpenHciTransport() instead 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.
Sourcepub fn get_crash_parameters(
&self,
) -> QueryResponseFut<VendorGetCrashParametersResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn get_crash_parameters( &self, ) -> QueryResponseFut<VendorGetCrashParametersResult, DefaultFuchsiaResourceDialect> ⓘ
Returns parameters used by bt-snoop to record and file Bluetooth controller crash reports. Core dump events will be redacted from snoop logs. Returns NOT_SUPPORTED if crash dumps are not supported by this vendor.
Trait Implementations§
Source§impl Clone for VendorProxy
impl Clone for VendorProxy
Source§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.