pub struct ConnectError<ErrConnect> {
pub reconnection_attempt: u32,
pub kind: ConnectErrorKind<ErrConnect>,
}Expand description
Connection error with reconnection attempt count.
Fields§
§reconnection_attempt: u32§kind: ConnectErrorKind<ErrConnect>Trait Implementations§
Source§impl<ErrConnect: Clone> Clone for ConnectError<ErrConnect>
impl<ErrConnect: Clone> Clone for ConnectError<ErrConnect>
impl<ErrConnect: Copy> Copy for ConnectError<ErrConnect>
Source§impl<ErrConnect: Debug> Debug for ConnectError<ErrConnect>
impl<ErrConnect: Debug> Debug for ConnectError<ErrConnect>
Source§impl<ErrConnect: PartialEq> PartialEq for ConnectError<ErrConnect>
impl<ErrConnect: PartialEq> PartialEq for ConnectError<ErrConnect>
impl<ErrConnect: PartialEq> StructuralPartialEq for ConnectError<ErrConnect>
Auto Trait Implementations§
impl<ErrConnect> Freeze for ConnectError<ErrConnect>where
ConnectErrorKind<ErrConnect>: Freeze,
impl<ErrConnect> RefUnwindSafe for ConnectError<ErrConnect>where
ConnectErrorKind<ErrConnect>: RefUnwindSafe,
impl<ErrConnect> Send for ConnectError<ErrConnect>where
ConnectErrorKind<ErrConnect>: Send,
impl<ErrConnect> Sync for ConnectError<ErrConnect>where
ConnectErrorKind<ErrConnect>: Sync,
impl<ErrConnect> Unpin for ConnectError<ErrConnect>where
ConnectErrorKind<ErrConnect>: Unpin,
impl<ErrConnect> UnsafeUnpin for ConnectError<ErrConnect>where
ConnectErrorKind<ErrConnect>: UnsafeUnpin,
impl<ErrConnect> UnwindSafe for ConnectError<ErrConnect>where
ConnectErrorKind<ErrConnect>: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
Converts
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> ⓘ
Converts
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