pub struct HandshakeJoiner {
pub frames: VecDeque<Message>,
/* 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.
Fields§
§frames: VecDeque<Message>
Completed handshake frames for output.
Implementations§
source§impl HandshakeJoiner
impl HandshakeJoiner
sourcepub fn new() -> HandshakeJoiner
pub fn new() -> HandshakeJoiner
Make a new HandshakeJoiner.
sourcepub fn want_message(&self, msg: &Message) -> bool
pub fn want_message(&self, msg: &Message) -> bool
Do we want to process this message?
sourcepub fn take_message(&mut self, msg: Message) -> Option<usize>
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.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for HandshakeJoiner
impl Send for HandshakeJoiner
impl Sync for HandshakeJoiner
impl Unpin for HandshakeJoiner
impl UnwindSafe for HandshakeJoiner
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more