pub struct Chunker;
Expand description

The Chunker is responsible for turning messages to chunks and chunks into messages.

Implementations

Ensure all of the supplied chunks have a valid secure channel id, and sequence numbers greater than the input sequence number and the preceding chunk

The function returns the last sequence number in the series for success, or BadSequenceNumberInvalid or BadSecureChannelIdInvalid for failure.

Encodes a message using the supplied sequence number and secure channel info and emits the corresponding chunks

max_chunk_count refers to the maximum byte length that a chunk should not exceed or 0 for no limit max_message_size refers to the maximum byte length of a message or 0 for no limit

Decodes a series of chunks to create a message. The message must be of a SupportedMessage type otherwise an error will occur.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.