Enum tinkerforge::ip_connection::ConnectError
source · pub enum ConnectError {
CouldNotParseIpAddress(String),
CouldNotResolveIpAddress,
IoError(Error),
AlreadyConnected,
CouldNotSetNoDelayFlag,
CouldNotCloneTcpStream,
NotReallyConnected,
}
Expand description
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
sourceimpl Debug for ConnectError
impl Debug for ConnectError
sourceimpl Display for ConnectError
impl Display for ConnectError
sourceimpl Error for ConnectError
impl Error for ConnectError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for ConnectError
impl Send for ConnectError
impl Sync for ConnectError
impl Unpin for ConnectError
impl !UnwindSafe for ConnectError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more