pub enum ConnectErrors {
    SocketListParseError(Error),
    SocketListIsEmpty,
    ConnectionError(Error),
    TryCloneError(Error),
    BindError(Error),
    SetNonblockingError,
    SetNodelayError(Error),
}
Expand description

The error type for the connect-function.

Variants

SocketListParseError(Error)

This happens if the input socket list is not a valid address. For example, the port may be missing.

SocketListIsEmpty

The parsed socket list is empty

ConnectionError(Error)

This occurs if the server is not available during connecting.

TryCloneError(Error)

This happens if a connection was established succesfully, but the cloning of the streams for the asynchronous read thread failed.

BindError(Error)

This happens if a server tries to bind a socket address and fails.

SetNonblockingError

Internally the tcp-stream is set to non-blocking. This error indicates that this operation failed.

SetNodelayError(Error)

Internally the tcp-stream is set to NoDelay (as default). This error indicates that this operation failed.

Trait Implementations

Formats the value using the given formatter. Read more

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.