pub fn write_frame<T: Serialize>(
stream: &mut UnixStream,
value: &T,
) -> Result<(), ClientError>Expand description
Write one size-bounded JSON frame to a gateway stream.
ยงErrors
Returns ClientError::Protocol when serialization fails or the frame is
too large, and a typed transport/timeout error when writing fails.