Skip to main content

read_frame

Function read_frame 

Source
pub fn read_frame<T: DeserializeOwned>(
    reader: &mut impl Read,
    bound: usize,
) -> Result<T>
Expand description

Read one bounded fresh frame, rejecting unknown versions and malformed payloads.

ยงErrors

Returns incomplete, oversized, malformed or incompatible frame errors.