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>>
fn setup_data_path( &self, payload: &IsochronousStreamSetupDataPathRequest, ) -> Self::SetupDataPathResponseFut
type ReadResponseFut = QueryResponseFut<IsochronousStreamReadResponse>
fn read(&self) -> Self::ReadResponseFut
source§impl Proxy for IsochronousStreamProxy
impl Proxy for IsochronousStreamProxy
§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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)