[][src]Enum tinkerforge::ip_connection::ConnectError

pub enum ConnectError {
    CouldNotParseIpAddress(String),
    CouldNotResolveIpAddress,
    IoError(Error),
    AlreadyConnected,
    CouldNotSetNoDelayFlag,
    CouldNotCloneTcpStream,
    NotReallyConnected,
}

This error is raised if a connect call fails.

Variants

CouldNotParseIpAddress(String)

Could not parse the given ip address.

CouldNotResolveIpAddress

Could not resolve the given ip addresses.

IoError(Error)

An IoError was raised while creating the socket.

AlreadyConnected

Already connected. Disconnect before connecting somewhere else.

CouldNotSetNoDelayFlag

Could not create tcp socket (Failed to set no delay flag).

CouldNotCloneTcpStream

Could not create tcp socket (Failed to clone tcp stream).

NotReallyConnected

Connect succeeded, but the socket was disconnected immediately. This usually happens if the first auto-reconnect succeeds immediately, but should be handled within the reconnect logic.

Trait Implementations

impl Debug for ConnectError[src]

impl Display for ConnectError[src]

impl Error for ConnectError[src]

impl From<Error> for ConnectError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.