pub enum ConnectionError {
Show 13 variants
ConnectionRefused,
ConnectionReset,
NetworkUnreachable,
HostUnreachable,
ProtocolUnreachable,
PortUnreachable,
DestinationHostDown,
SourceRouteFailed,
SourceHostIsolated,
TimedOut,
PermissionDenied,
ProtocolError,
Aborted,
}Expand description
Errors surfaced to the user.
Variants§
ConnectionRefused
The connection was refused, RST segment received while in SYN_SENT state.
ConnectionReset
The connection was reset because of a RST segment.
NetworkUnreachable
The connection was closed because the network is unreachable.
HostUnreachable
The connection was closed because the host is unreachable.
ProtocolUnreachable
The connection was closed because the protocol is unreachable.
PortUnreachable
The connection was closed because the port is unreachable.
DestinationHostDown
The connection was closed because the host is down.
SourceRouteFailed
The connection was closed because the source route failed.
SourceHostIsolated
The connection was closed because the source host is isolated.
TimedOut
The connection was closed because of a time out.
PermissionDenied
The connection was closed because of a lack of required permissions.
ProtocolError
The connection was closed because there was a protocol error.
Aborted
The connection was aborted by the system.
Trait Implementations§
Source§impl Clone for ConnectionError
impl Clone for ConnectionError
Source§fn clone(&self) -> ConnectionError
fn clone(&self) -> ConnectionError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConnectionError
impl Debug for ConnectionError
Source§impl Display for ConnectionError
impl Display for ConnectionError
Source§impl Error for ConnectionError
impl Error for ConnectionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl PartialEq for ConnectionError
impl PartialEq for ConnectionError
impl Copy for ConnectionError
impl Eq for ConnectionError
impl StructuralPartialEq for ConnectionError
Auto Trait Implementations§
impl Freeze for ConnectionError
impl RefUnwindSafe for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl UnwindSafe for ConnectionError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more