Struct fidl_fuchsia_paver::PayloadStreamProxy
source · pub struct PayloadStreamProxy { /* private fields */ }
Implementations§
source§impl PayloadStreamProxy
impl PayloadStreamProxy
sourcepub fn take_event_stream(&self) -> PayloadStreamEventStream
pub fn take_event_stream(&self) -> PayloadStreamEventStream
Get a Stream of events from the remote end of the PayloadStream protocol
Panics
Panics if the event stream was already taken.
sourcepub fn register_vmo(&self, vmo: Vmo) -> QueryResponseFut<i32>
pub fn register_vmo(&self, vmo: Vmo) -> QueryResponseFut<i32>
Registers a VMO to stream into.
This can be called once per PayloadStream. Any subsequent calls will return ZX_ERR_ALREADY_BOUND.
sourcepub fn read_data(&self) -> QueryResponseFut<ReadResult>
pub fn read_data(&self) -> QueryResponseFut<ReadResult>
Reads data into the pre-registered vmo.
Trait Implementations§
source§impl Clone for PayloadStreamProxy
impl Clone for PayloadStreamProxy
source§fn clone(&self) -> PayloadStreamProxy
fn clone(&self) -> PayloadStreamProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PayloadStreamProxy
impl Debug for PayloadStreamProxy
source§impl PayloadStreamProxyInterface for PayloadStreamProxy
impl PayloadStreamProxyInterface for PayloadStreamProxy
type RegisterVmoResponseFut = QueryResponseFut<i32>
fn register_vmo(&self, vmo: Vmo) -> Self::RegisterVmoResponseFut
type ReadDataResponseFut = QueryResponseFut<ReadResult>
fn read_data(&self) -> Self::ReadDataResponseFut
source§impl Proxy for PayloadStreamProxy
impl Proxy for PayloadStreamProxy
§type Protocol = PayloadStreamMarker
type Protocol = PayloadStreamMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more