pub struct StreamSinkProxy { /* private fields */ }Implementations§
Source§impl StreamSinkProxy
 
impl StreamSinkProxy
Sourcepub fn take_event_stream(&self) -> StreamSinkEventStream
 
pub fn take_event_stream(&self) -> StreamSinkEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn send_packet(
    &self,
    packet: &StreamPacket,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
 
pub fn send_packet( &self, packet: &StreamPacket, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Sends a packet to the service. The response is sent when the service is done with the associated payload memory.
packet must be valid for the current buffer set, otherwise the service
will close the connection.
Sourcepub fn send_packet_no_reply(&self, packet: &StreamPacket) -> Result<(), Error>
 
pub fn send_packet_no_reply(&self, packet: &StreamPacket) -> Result<(), Error>
Sends a packet to the service. This interface doesn’t define how the client knows when the sink is done with the associated payload memory. The inheriting interface must define that.
packet must be valid for the current buffer set, otherwise the service
will close the connection.
Sourcepub fn end_of_stream(&self) -> Result<(), Error>
 
pub fn end_of_stream(&self) -> Result<(), Error>
Indicates the stream has ended. The precise semantics of this method are determined by the inheriting interface.
Sourcepub fn discard_all_packets(
    &self,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
 
pub fn discard_all_packets( &self, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Discards packets previously sent via SendPacket or SendPacketNoReply
and not yet released. The response is sent after all packets have been
released.
Sourcepub fn discard_all_packets_no_reply(&self) -> Result<(), Error>
 
pub fn discard_all_packets_no_reply(&self) -> Result<(), Error>
Discards packets previously sent via SendPacket or SendPacketNoReply
and not yet released.
Trait Implementations§
Source§impl Clone for StreamSinkProxy
 
impl Clone for StreamSinkProxy
Source§fn clone(&self) -> StreamSinkProxy
 
fn clone(&self) -> StreamSinkProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StreamSinkProxy
 
impl Debug for StreamSinkProxy
Source§impl Proxy for StreamSinkProxy
 
impl Proxy for StreamSinkProxy
Source§type Protocol = StreamSinkMarker
 
type Protocol = StreamSinkMarker
Proxy controls.