Skip to main content

read_message

Function read_message 

Source
pub fn read_message(
    input: &mut impl Read,
    limit: NonZeroU32,
) -> Result<Option<Message>, Error>
Expand description

Read and decode one bounded frame; clean EOF returns no message.

ยงErrors

Returns embed_protocol for framing or input failures; propagates the envelope and limit refusals from decode_message.