pub struct IsochronousStreamSynchronousProxy { /* private fields */ }
Implementations§
Source§impl IsochronousStreamSynchronousProxy
impl IsochronousStreamSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<IsochronousStreamEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<IsochronousStreamEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn setup_data_path(
&self,
payload: &IsochronousStreamSetupDataPathRequest,
___deadline: MonotonicInstant,
) -> Result<IsochronousStreamSetupDataPathResult, Error>
pub fn setup_data_path( &self, payload: &IsochronousStreamSetupDataPathRequest, ___deadline: MonotonicInstant, ) -> Result<IsochronousStreamSetupDataPathResult, Error>
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,
___deadline: MonotonicInstant,
) -> Result<IsochronousStreamReadResponse, Error>
pub fn read( &self, ___deadline: MonotonicInstant, ) -> Result<IsochronousStreamReadResponse, Error>
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 SynchronousProxy for IsochronousStreamSynchronousProxy
impl SynchronousProxy for IsochronousStreamSynchronousProxy
Source§type Proxy = IsochronousStreamProxy
type Proxy = IsochronousStreamProxy
Source§type Protocol = IsochronousStreamMarker
type Protocol = IsochronousStreamMarker
Proxy
controls.