pub enum Affinity<'a> {
Unpinned,
Sticky(Option<&'a str>),
}Expand description
Whether a request is pinned to a backend by its sticky-session cookie.
Variants§
Unpinned
The frontend does not stick: any cookie the client sent is ignored.
Sticky(Option<&'a str>)
The frontend sticks. Some is the cookie the request carried, tried
first; None, or a cookie naming no live backend, falls back to the
cluster’s load balancer. Either way the answer carries a cookie.
Trait Implementations§
impl<'a> Copy for Affinity<'a>
impl<'a> Eq for Affinity<'a>
impl<'a> StructuralPartialEq for Affinity<'a>
Auto Trait Implementations§
impl<'a> Freeze for Affinity<'a>
impl<'a> RefUnwindSafe for Affinity<'a>
impl<'a> Send for Affinity<'a>
impl<'a> Sync for Affinity<'a>
impl<'a> Unpin for Affinity<'a>
impl<'a> UnsafeUnpin for Affinity<'a>
impl<'a> UnwindSafe for Affinity<'a>
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
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.