pub enum ConnectError<E> {
InvalidState,
InProgress,
AlreadyConnected,
IsListening,
FailedAssociation(E),
}
Variants§
InvalidState
InProgress
A previous connection attempt is in progress.
AlreadyConnected
A connection has previously been attempted and was either successful or unsuccessful (it may or may not have reached the “established” state). The connection may be established, timed out, closing, half-closed, closed, etc. This does not include connection attempts that are in progress (“syn-sent” or “syn-received” states).
IsListening
Is already listening for new connections.
FailedAssociation(E)
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for ConnectError<E>where
E: Freeze,
impl<E> RefUnwindSafe for ConnectError<E>where
E: RefUnwindSafe,
impl<E> Send for ConnectError<E>where
E: Send,
impl<E> Sync for ConnectError<E>where
E: Sync,
impl<E> Unpin for ConnectError<E>where
E: Unpin,
impl<E> UnwindSafe for ConnectError<E>where
E: UnwindSafe,
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