pub type TransportError<T> = Error<<<T as Behavior>::Stream as ErrorType>::Error>;Expand description
Convenience type alias describing the transport error type for a given behavior type.
Aliased Type§
pub enum TransportError<T> {
UnexpectedEof,
IO(<<T as Behavior>::Stream as ErrorType>::Error),
Protocol(ProtocolError),
ServerDisconnect(DisconnectReason),
ClientDisconnect(DisconnectReason),
}Variants§
UnexpectedEof
The transport’s stream reached EOF unexpectedly.
IO(<<T as Behavior>::Stream as ErrorType>::Error)
The transport’s stream encountered an I/O error.
Protocol(ProtocolError)
The transport encountered a fatal protocol error.
ServerDisconnect(DisconnectReason)
The server ended communication by disconnecting.
ClientDisconnect(DisconnectReason)
The client ended communication by disconnecting.