pub async fn write_frame<W>(
writer: &mut W,
kind: FrameKind,
body: &[u8],
budget: &mut Budget,
) -> Result<(), WireError>where
W: AsyncWrite + Unpin,Expand description
Write one frame, charging the connection’s egress budget for all of it.