Struct rustls::internal::msgs::hsjoiner::HandshakeJoiner[][src]

pub struct HandshakeJoiner {
    pub frames: VecDeque<Message>,
    // some fields omitted
}
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

impl HandshakeJoiner[src]

pub fn new() -> HandshakeJoiner[src]

Make a new HandshakeJoiner.

pub fn want_message(&self, msg: &Message) -> bool[src]

Do we want to process this message?

pub fn is_empty(&self) -> bool[src]

Do we have any buffered data?

pub fn take_message(&mut self, msg: Message) -> Option<usize>[src]

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

impl Default for HandshakeJoiner[src]

fn default() -> Self[src]

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.