#[non_exhaustive]pub struct Handover {
pub redirect: Redirect,
pub handover: Duration,
}Expand description
How a connection hands over to a new session after a peer’s GOAWAY.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.redirect: RedirectWhat to do with the URI the GOAWAY names. Defaults to Redirect::SameHost.
handover: DurationThe longest the old session keeps serving after a GOAWAY. Defaults to 10 s.
It closes sooner, once its replacement is up and it carries no subscription or fetch. A GOAWAY naming a shorter deadline wins, since the peer force-closes at its own deadline regardless, but a longer one does not extend it.
Trait Implementations§
impl Copy for Handover
impl Eq for Handover
impl StructuralPartialEq for Handover
Auto Trait Implementations§
impl Freeze for Handover
impl RefUnwindSafe for Handover
impl Send for Handover
impl Sync for Handover
impl Unpin for Handover
impl UnsafeUnpin for Handover
impl UnwindSafe for Handover
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<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
Compare self to
key and return true if they are equal.