pub enum ReconnectAction {
RetryAfter(Duration),
Stop,
}Expand description
Decision returned by a custom reconnect policy.
Variants§
RetryAfter(Duration)
Retry after the specified delay.
Stop
Remain disconnected until an explicit connect or reconnect request.
Trait Implementations§
Source§impl Clone for ReconnectAction
impl Clone for ReconnectAction
Source§fn clone(&self) -> ReconnectAction
fn clone(&self) -> ReconnectAction
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 ReconnectAction
impl Debug for ReconnectAction
Source§impl PartialEq for ReconnectAction
impl PartialEq for ReconnectAction
Source§fn eq(&self, other: &ReconnectAction) -> bool
fn eq(&self, other: &ReconnectAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ReconnectAction
impl Eq for ReconnectAction
impl StructuralPartialEq for ReconnectAction
Auto Trait Implementations§
impl Freeze for ReconnectAction
impl RefUnwindSafe for ReconnectAction
impl Send for ReconnectAction
impl Sync for ReconnectAction
impl Unpin for ReconnectAction
impl UnsafeUnpin for ReconnectAction
impl UnwindSafe for ReconnectAction
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