Function psup_json_rpc::write[][src]

pub async fn write<W>(
    writer: &mut W,
    msg: &Message
) -> Result<(), Box<dyn Error + Send + Sync>> where
    W: AsyncWrite + Unpin

Write a message to the writer as a JSON encoded line.