pub struct LbContext {
pub client_addr: SocketAddr,
pub uri: String,
pub headers: HeaderMap,
}Expand description
Contextual information about the current request, made available to load-balancing strategies that need more than the pool itself.
Fields§
§client_addr: SocketAddr§uri: String§headers: HeaderMapAuto Trait Implementations§
impl Freeze for LbContext
impl RefUnwindSafe for LbContext
impl Send for LbContext
impl Sync for LbContext
impl Unpin for LbContext
impl UnsafeUnpin for LbContext
impl UnwindSafe for LbContext
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