pub struct LbConfig {
pub vips: Vec<VipConfig>,
pub routes: Vec<RouteConfig>,
pub health_check_interval: u64,
pub rate_limit_rps: u32,
pub rate_limit_burst: u32,
}Expand description
Load balancer configuration.
Fields§
§vips: Vec<VipConfig>VIP definitions.
routes: Vec<RouteConfig>Route definitions.
health_check_interval: u64Health check interval in ticks.
rate_limit_rps: u32Default rate limit (requests per second).
rate_limit_burst: u32Default rate limit burst.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LbConfig
impl RefUnwindSafe for LbConfig
impl Send for LbConfig
impl Sync for LbConfig
impl Unpin for LbConfig
impl UnwindSafe for LbConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)