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

Values of this structure are returned from Connection::process_new_packets and tell the caller the current I/O state of the TLS connection.

Implementations

How many bytes could be written by CommonState::write_tls if called right now. A non-zero value implies CommonState::wants_write.

How many plaintext bytes could be obtained via std::io::Read without further I/O.

True if the peer has sent us a close_notify alert. This is the TLS mechanism to securely half-close a TLS connection, and signifies that the peer will not send any further data on this connection.

This is also signalled via returning Ok(0) from std::io::Read, after all the received bytes have been retrieved.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.