pub enum Strategy {
RoundRobin,
IpHash,
CookieHash,
Rps,
}Variants§
RoundRobin
Sends requests to workers in a round-robin fashion.
IpHash
Hashes the IP address of the client to determine which worker to send the request to.
CookieHash
Adds a cookie to the requests to identify the worker to send the request to. This is useful for sticky sessions from within the same network.
Rps
Round-robin with RPS (Requests Per Second) scaling.
Trait Implementations§
impl Copy for Strategy
Auto Trait Implementations§
impl Freeze for Strategy
impl RefUnwindSafe for Strategy
impl Send for Strategy
impl Sync for Strategy
impl Unpin for Strategy
impl UnwindSafe for Strategy
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