pub struct MessageFragmenter { /* private fields */ }

Implementations§

Take the Message msg and re-fragment it into new messages whose fragment is no more than max_frag. Return an iterator across those messages. Payloads are borrowed.

Enqueue borrowed fragments of (version, typ, payload) which are no longer than max_frag onto the out deque.

Set the maximum fragment size that will be produced.

This includes overhead. A max_fragment_size of 10 will produce TLS fragments up to 10 bytes long.

A max_fragment_size of None sets the highest allowable fragment size.

Returns BadMaxFragmentSize if the size is smaller than 32 or larger than 16389.

Trait Implementations§

Returns the “default value” for a type. Read more

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.