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§
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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".