pub struct Reconnect { /* private fields */ }Expand description
Handle to a background reconnect loop.
Spawns a tokio task that connects, waits for session close, then reconnects with exponential backoff. Dropping the handle aborts the background task.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Reconnect
impl !RefUnwindSafe for Reconnect
impl Send for Reconnect
impl Sync for Reconnect
impl Unpin for Reconnect
impl UnsafeUnpin for Reconnect
impl !UnwindSafe for Reconnect
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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