pub struct ProxyRouteContext<'a> {
pub request: &'a Request,
pub attempt: u32,
pub previous_profile_key: Option<&'a str>,
}Expand description
Borrowed inputs available to a ProxyStrategy.
let context = ProxyRouteContext::new(&request, 0).previous_profile_key("old");
assert_eq!(context.previous_profile_key, Some("old"));Fields§
§request: &'a RequestRequest being routed.
attempt: u32Zero-based attempt.
previous_profile_key: Option<&'a str>Profile selected on the previous attempt, when any.
Implementations§
Source§impl<'a> ProxyRouteContext<'a>
impl<'a> ProxyRouteContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for ProxyRouteContext<'a>
impl<'a> RefUnwindSafe for ProxyRouteContext<'a>
impl<'a> Send for ProxyRouteContext<'a>
impl<'a> Sync for ProxyRouteContext<'a>
impl<'a> Unpin for ProxyRouteContext<'a>
impl<'a> UnsafeUnpin for ProxyRouteContext<'a>
impl<'a> UnwindSafe for ProxyRouteContext<'a>
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