fidl_fuchsia_media

Trait StreamSinkProxyInterface

Source
pub trait StreamSinkProxyInterface: Send + Sync {
    type SendPacketResponseFut: Future<Output = Result<(), Error>> + Send;
    type DiscardAllPacketsResponseFut: Future<Output = Result<(), Error>> + Send;

    // Required methods
    fn send_packet(&self, packet: &StreamPacket) -> Self::SendPacketResponseFut;
    fn send_packet_no_reply(&self, packet: &StreamPacket) -> Result<(), Error>;
    fn end_of_stream(&self) -> Result<(), Error>;
    fn discard_all_packets(&self) -> Self::DiscardAllPacketsResponseFut;
    fn discard_all_packets_no_reply(&self) -> Result<(), Error>;
}

Required Associated Types§

Required Methods§

Implementors§