pub struct ReconnectContext {
pub attempt: u32,
pub reason: DisconnectReason,
}Expand description
Information supplied to a custom reconnect policy.
Fields§
§attempt: u32Reconnect attempt number after the disconnect.
reason: DisconnectReasonTransport or client condition that caused the disconnect.
Trait Implementations§
Source§impl Clone for ReconnectContext
impl Clone for ReconnectContext
Source§fn clone(&self) -> ReconnectContext
fn clone(&self) -> ReconnectContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReconnectContext
impl Debug for ReconnectContext
Source§impl PartialEq for ReconnectContext
impl PartialEq for ReconnectContext
Source§fn eq(&self, other: &ReconnectContext) -> bool
fn eq(&self, other: &ReconnectContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ReconnectContext
impl StructuralPartialEq for ReconnectContext
Auto Trait Implementations§
impl Freeze for ReconnectContext
impl RefUnwindSafe for ReconnectContext
impl Send for ReconnectContext
impl Sync for ReconnectContext
impl Unpin for ReconnectContext
impl UnsafeUnpin for ReconnectContext
impl UnwindSafe for ReconnectContext
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