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§
Auto Trait Implementations§
impl Freeze for ConnectErrors
impl !RefUnwindSafe for ConnectErrors
impl Send for ConnectErrors
impl Sync for ConnectErrors
impl Unpin for ConnectErrors
impl !UnwindSafe for ConnectErrors
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more