Development Documentation (main branch) - For stable release docs, see docs.rs/eidetica
Skip to main content

read_frame

Function read_frame 

Source
pub async fn read_frame<R: AsyncRead + Unpin, T: for<'de> Deserialize<'de>>(
    reader: &mut R,
) -> Result<Option<T>>
Expand description

Read a length-prefixed JSON frame from an async reader.

Returns None on clean EOF (connection closed).