| |
/// A state of [`Transport`] network transport.
|
| |
#[derive(Clone, Copy, Ord, PartialOrd, Eq, PartialEq, Hash, Debug)]
|
| |
pub enum TransportState {
|
| - |
/// The transport is initiated, but the connection has not established yet.
|
| + |
/// The transport is initiated, but the connection has not been established yet.
|
| |
/// This happens only for outgoing connections due to the use of
|
| |
/// non-blocking calls to `connect`. The state changes once
|
| |
/// we receive the first notification on a `write` event on this resource
|
| |
|
| |
/// Session was terminated (for an unspecified reason, e.g. local shutdown,
|
| |
/// remote orderly shutdown, connectivity issue, dropped connections,
|
| - |
/// encryption or authentication problem etc.
|
| + |
/// encryption, or authentication problem etc.
|
| |
/// Reading and writing from the resource in
|
| |
/// this state will result in an error ([`io::Error`]).
|
| |
Terminated,
|
| |
}
|
| |
|
| - |
/// Transport is an adaptor a around specific [`Session`] (implementing
|
| + |
/// Transport is an adaptor around a specific [`Session`] (implementing
|
| |
/// session management, including optional handshake, encoding, etc.) to be used
|
| |
/// as a transport resource in a [`crate::reactor::Reactor`].
|
| |
#[derive(Debug)]
|