pub trait Sink:
Sync
+ Send
+ 'static {
// Required method
fn send(
&mut self,
msg: Bytes,
) -> impl Future<Output = Result<(), Error>> + Send;
}
Expand description
Interface that any runtime must implement to send messages over a network connection.
Required Methods§
Object Safety§
This trait is not object safe.