pub struct HandshakeJoiner { /* private fields */ }
Expand description

This works to reconstruct TLS handshake messages from individual TLS messages. It’s guaranteed that TLS messages output from this layer contain precisely one handshake payload.

Implementations§

Make a new HandshakeJoiner.

Take the message, and join/split it as needed.

Returns Err(JoinerError::Unwanted(msg)) if msg’s type is not ContentType::Handshake or JoinerError::Decode if a received payload has an advertised size larger than we accept.

Otherwise, yields a bool to indicate whether the handshake is “aligned”: if the buffer currently only contains complete payloads (that is, no incomplete message in the suffix).

Parse the first received message out of the buffer.

Returns Ok(None) if we don’t have a complete message in the buffer, or Err if we fail to parse the first message in the buffer.

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.