pub struct RoundRobinRouteProvider { /* private fields */ }
Expand description
A simple implementation of the RouteProvider
which produces an even distribution of the urls from the input ones.
Implementations§
source§impl RoundRobinRouteProvider
impl RoundRobinRouteProvider
sourcepub fn new<T: AsRef<str>>(routes: Vec<T>) -> Result<Self, AgentError>
pub fn new<T: AsRef<str>>(routes: Vec<T>) -> Result<Self, AgentError>
Construct RoundRobinRouteProvider
from a vector of urls.
Trait Implementations§
source§impl Debug for RoundRobinRouteProvider
impl Debug for RoundRobinRouteProvider
Auto Trait Implementations§
impl !Freeze for RoundRobinRouteProvider
impl RefUnwindSafe for RoundRobinRouteProvider
impl Send for RoundRobinRouteProvider
impl Sync for RoundRobinRouteProvider
impl Unpin for RoundRobinRouteProvider
impl UnwindSafe for RoundRobinRouteProvider
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