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 put_packet(
&self,
payload: StreamSinkPutPacketRequest,
) -> Result<(), Error>
pub fn put_packet( &self, payload: StreamSinkPutPacketRequest, ) -> Result<(), Error>
Puts a packet to the sink.
Sourcepub fn start_segment(
&self,
payload: &StreamSinkStartSegmentRequest,
) -> Result<(), Error>
pub fn start_segment( &self, payload: &StreamSinkStartSegmentRequest, ) -> Result<(), Error>
Starts a new segment. Packets following this request and preceding the next such request are assigned to the segment.
Sourcepub fn end(&self) -> Result<(), Error>
pub fn end(&self) -> Result<(), Error>
Indicates that the end of the stream has been reached. Consumers such as audio renderers
signal their clients when the last packet before end-of-stream has been rendered, so the
client knows when to, for example, change the UI state of a player to let the user know the
content is done playing. This method is logically scoped to the current segment. A
SetSegment
request and (typically) more packets may follow this request.
Sourcepub fn will_close(
&self,
payload: &StreamSinkWillCloseRequest,
) -> Result<(), Error>
pub fn will_close( &self, payload: &StreamSinkWillCloseRequest, ) -> Result<(), Error>
Sent immediately before the producer closes to indicate why the producer is closing the connection. After sending this request, the producer must refrain from sending any more messages and close the connection promptly.
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.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>
Source§impl StreamSinkProxyInterface for StreamSinkProxy
impl StreamSinkProxyInterface for StreamSinkProxy
fn put_packet(&self, payload: StreamSinkPutPacketRequest) -> Result<(), Error>
fn start_segment( &self, payload: &StreamSinkStartSegmentRequest, ) -> Result<(), Error>
fn end(&self) -> Result<(), Error>
fn will_close(&self, payload: &StreamSinkWillCloseRequest) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for StreamSinkProxy
impl !RefUnwindSafe for StreamSinkProxy
impl Send for StreamSinkProxy
impl Sync for StreamSinkProxy
impl Unpin for StreamSinkProxy
impl !UnwindSafe for StreamSinkProxy
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)