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
§type Protocol = VendorMarker
type Protocol = VendorMarker
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
source§impl VendorProxyInterface for VendorProxy
impl VendorProxyInterface for VendorProxy
type GetFeaturesResponseFut = QueryResponseFut<VendorFeatures>
fn get_features(&self) -> Self::GetFeaturesResponseFut
type EncodeCommandResponseFut = QueryResponseFut<Result<Vec<u8>, i32>>
fn encode_command( &self, payload: &VendorCommand, ) -> Self::EncodeCommandResponseFut
type OpenHciResponseFut = QueryResponseFut<Result<ClientEnd<HciMarker>, i32>>
fn open_hci(&self) -> Self::OpenHciResponseFut
type OpenHciTransportResponseFut = QueryResponseFut<Result<ClientEnd<HciTransportMarker>, i32>>
fn open_hci_transport(&self) -> Self::OpenHciTransportResponseFut
type OpenSnoopResponseFut = QueryResponseFut<Result<ClientEnd<SnoopMarker>, i32>>
fn open_snoop(&self) -> Self::OpenSnoopResponseFut
Auto Trait Implementations§
impl Freeze for VendorProxy
impl !RefUnwindSafe for VendorProxy
impl Send for VendorProxy
impl Sync for VendorProxy
impl Unpin for VendorProxy
impl !UnwindSafe for VendorProxy
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)