pub async fn send_message<W>(
writer: &mut FramedWrite<W, LengthDelimitedCodec>,
msg: &impl Serialize,
) -> Result<(), Error>where
W: AsyncWrite + Unpin,Expand description
Serialize a message as JSON and send it over a framed writer.
pub async fn send_message<W>(
writer: &mut FramedWrite<W, LengthDelimitedCodec>,
msg: &impl Serialize,
) -> Result<(), Error>where
W: AsyncWrite + Unpin,Serialize a message as JSON and send it over a framed writer.