Struct rustls::internal::msgs::hsjoiner::HandshakeJoiner [−][src]
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.
Fields
frames: VecDeque<Message>
Completed handshake frames for output.
Methods
impl HandshakeJoiner[src]
impl HandshakeJoinerpub fn new() -> HandshakeJoiner[src]
pub fn new() -> HandshakeJoinerMake a new HandshakeJoiner.
pub fn want_message(&self, msg: &Message) -> bool[src]
pub fn want_message(&self, msg: &Message) -> boolDo we want to process this message?
pub fn is_empty(&self) -> bool[src]
pub fn is_empty(&self) -> boolDo we have any buffered data?
pub fn take_message(&mut self, msg: Message) -> Option<usize>[src]
pub fn take_message(&mut self, msg: Message) -> Option<usize>Take the message, and join/split it as needed. Return the number of new messages added to the output deque as a result of this message.
Returns None if msg or a preceding message was corrupt. You cannot recover from this situation. Otherwise returns a count of how many messages we queued.
Auto Trait Implementations
impl Send for HandshakeJoiner
impl Send for HandshakeJoinerimpl Sync for HandshakeJoiner
impl Sync for HandshakeJoiner