pub enum TcpError {
ConnectTimeout,
ConnectionRefused,
ConnectionReset,
CloseTimeout,
SocketError,
InvalidState,
}Expand description
TCP-specific errors.
Variants§
ConnectTimeout
Connection timed out
ConnectionRefused
Connection refused by remote
ConnectionReset
Connection reset by remote
CloseTimeout
Close timed out
SocketError
Socket error
InvalidState
Invalid state
Trait Implementations§
Source§impl From<TcpError> for StateError
impl From<TcpError> for StateError
impl Copy for TcpError
impl Eq for TcpError
impl StructuralPartialEq for TcpError
Auto Trait Implementations§
impl Freeze for TcpError
impl RefUnwindSafe for TcpError
impl Send for TcpError
impl Sync for TcpError
impl Unpin for TcpError
impl UnwindSafe for TcpError
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