pub struct PacketStreamSynchronousProxy { /* private fields */ }Implementations§
Source§impl PacketStreamSynchronousProxy
impl PacketStreamSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<PacketStreamEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<PacketStreamEvent, 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 set_buffers(
&self,
payload: PacketStreamSetBuffersRequest,
___deadline: MonotonicInstant,
) -> Result<PacketStreamSetBuffersResult, Error>
pub fn set_buffers( &self, payload: PacketStreamSetBuffersRequest, ___deadline: MonotonicInstant, ) -> Result<PacketStreamSetBuffersResult, Error>
Configures the shared memory buffers used to transfer audio data.
This method must be called before Start unless INLINE buffer type is supported
and the client intends to exclusively use inline data transfer.
Sourcepub fn start(
&self,
payload: &PacketStreamStartRequest,
___deadline: MonotonicInstant,
) -> Result<PacketStreamStartResult, Error>
pub fn start( &self, payload: &PacketStreamStartRequest, ___deadline: MonotonicInstant, ) -> Result<PacketStreamStartResult, Error>
Start the packet stream.
Sourcepub fn stop(
&self,
payload: &PacketStreamStopRequest,
___deadline: MonotonicInstant,
) -> Result<PacketStreamStopResult, Error>
pub fn stop( &self, payload: &PacketStreamStopRequest, ___deadline: MonotonicInstant, ) -> Result<PacketStreamStopResult, Error>
Stop the packet stream.
Trait Implementations§
Source§impl Debug for PacketStreamSynchronousProxy
impl Debug for PacketStreamSynchronousProxy
Source§impl From<Channel> for PacketStreamSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for PacketStreamSynchronousProxy
Available on Fuchsia only.
Source§impl From<PacketStreamSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<PacketStreamSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: PacketStreamSynchronousProxy) -> Self
fn from(value: PacketStreamSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for PacketStreamSynchronousProxy
Available on Fuchsia only.
impl FromClient for PacketStreamSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = PacketStreamMarker
type Protocol = PacketStreamMarker
The protocol.
Source§fn from_client(value: ClientEnd<PacketStreamMarker>) -> Self
fn from_client(value: ClientEnd<PacketStreamMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for PacketStreamSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for PacketStreamSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = PacketStreamProxy
type Proxy = PacketStreamProxy
The async proxy for the same protocol.
Source§type Protocol = PacketStreamMarker
type Protocol = PacketStreamMarker
The protocol which this
Proxy controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for PacketStreamSynchronousProxy
impl RefUnwindSafe for PacketStreamSynchronousProxy
impl Send for PacketStreamSynchronousProxy
impl Sync for PacketStreamSynchronousProxy
impl Unpin for PacketStreamSynchronousProxy
impl UnsafeUnpin for PacketStreamSynchronousProxy
impl UnwindSafe for PacketStreamSynchronousProxy
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
Mutably borrows from an owned value. Read more