#[non_exhaustive]pub enum Restart {
Redial,
Handoff,
}Expand description
What to do when a peer’s GOAWAY names no URI, meaning it is restarting where we reached it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Redial
Redial the same addresses at once while the drained session keeps serving. Right for an address that can lead to another node, such as a fleet name a fresh resolve moves off the drained one. The default.
Handoff
Redial the same addresses once, as Self::Redial does, and keep serving on the
drained session meanwhile. A redial that reaches the draining process again, which
drains it before it is healthy, then keeps serving until the peer
closes it, and the connection reconnects as after any drop.
Right for an address that names one node which may start its replacement beside the
draining process, as a relay with [handoff] does: the one redial reaches the
replacement. A node that restarts in place costs a single extra session to the
draining process rather than one per backoff. The peer must close the session
itself, as a relay does at its drain deadline.
Trait Implementations§
impl Copy for Restart
impl Eq for Restart
impl StructuralPartialEq for Restart
Auto Trait Implementations§
impl Freeze for Restart
impl RefUnwindSafe for Restart
impl Send for Restart
impl Sync for Restart
impl Unpin for Restart
impl UnsafeUnpin for Restart
impl UnwindSafe for Restart
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.