pub trait WriteMessage {
// Required method
fn write_to<'a>(
self,
stream: &'a mut (impl AsyncRead + AsyncWrite + Unpin + Send + Sync),
) -> BoxFuture<'a, Result<(), ProtocolError>>;
}Required Methods§
fn write_to<'a>( self, stream: &'a mut (impl AsyncRead + AsyncWrite + Unpin + Send + Sync), ) -> BoxFuture<'a, Result<(), ProtocolError>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.