pub async fn read_frame_json<R, T>(r: &mut R) -> Result<Option<T>, FrameError>Expand description
Read a framed JSON blob and decode into T. Returns Ok(None) on a
clean frame-boundary EOF.
ยงErrors
Returns FrameError::Io for frame transport failures and
FrameError::Json when the frame body cannot be decoded as T.