pub struct IsochronousStreamProxy { /* private fields */ }
Implementations§
Source§impl IsochronousStreamProxy
impl IsochronousStreamProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.bluetooth.le/IsochronousStream.
Sourcepub fn take_event_stream(&self) -> IsochronousStreamEventStream
pub fn take_event_stream(&self) -> IsochronousStreamEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn setup_data_path(
&self,
payload: &IsochronousStreamSetupDataPathRequest,
) -> QueryResponseFut<IsochronousStreamSetupDataPathResult, DefaultFuchsiaResourceDialect>
pub fn setup_data_path( &self, payload: &IsochronousStreamSetupDataPathRequest, ) -> QueryResponseFut<IsochronousStreamSetupDataPathResult, DefaultFuchsiaResourceDialect>
Create an isochronous data path with the specified parameters. Only in-band (HCI) ISO transport is currently supported.
Returns ZX_ERR_ALREADY_EXISTS if a ISO stream has already been created for this direction.
Returns ZX_ERR_BAD_STATE if issued on a peripheral before a CIS request has been accepted.
Returns ZX_ERR_INVALID_ARGS if the codec arguments are invalid or outside of the controller’s supported range.
Sourcepub fn read(
&self,
) -> QueryResponseFut<IsochronousStreamReadResponse, DefaultFuchsiaResourceDialect>
pub fn read( &self, ) -> QueryResponseFut<IsochronousStreamReadResponse, DefaultFuchsiaResourceDialect>
Receive data from an output (controller => host) ISO stream that has been established and set up. Designed to be used with a hanging get pattern.
Can be invoked before the ISO data stream has been established and set up, but will not return until after it has been set up and data has been received.
Trait Implementations§
Source§impl Clone for IsochronousStreamProxy
impl Clone for IsochronousStreamProxy
Source§fn clone(&self) -> IsochronousStreamProxy
fn clone(&self) -> IsochronousStreamProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for IsochronousStreamProxy
impl Debug for IsochronousStreamProxy
Source§impl IsochronousStreamProxyInterface for IsochronousStreamProxy
impl IsochronousStreamProxyInterface for IsochronousStreamProxy
type SetupDataPathResponseFut = QueryResponseFut<Result<(), i32>>
type ReadResponseFut = QueryResponseFut<IsochronousStreamReadResponse>
fn setup_data_path( &self, payload: &IsochronousStreamSetupDataPathRequest, ) -> Self::SetupDataPathResponseFut
fn read(&self) -> Self::ReadResponseFut
Source§impl Proxy for IsochronousStreamProxy
impl Proxy for IsochronousStreamProxy
Source§type Protocol = IsochronousStreamMarker
type Protocol = IsochronousStreamMarker
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>
Auto Trait Implementations§
impl Freeze for IsochronousStreamProxy
impl !RefUnwindSafe for IsochronousStreamProxy
impl Send for IsochronousStreamProxy
impl Sync for IsochronousStreamProxy
impl Unpin for IsochronousStreamProxy
impl !UnwindSafe for IsochronousStreamProxy
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)