Skip to main content

write_frame

Function write_frame 

Source
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.