pub struct VirtualIp {
pub vip_addr: String,
pub vip_port: u16,
pub backends: Vec<Backend>,
pub algorithm: LbAlgorithm,
}Expand description
A virtual IP (VIP) with its backend pool.
Fields§
§vip_addr: StringVIP address.
vip_port: u16VIP port.
backends: Vec<Backend>Backend servers.
algorithm: LbAlgorithmLoad balancing algorithm.
Implementations§
Source§impl VirtualIp
impl VirtualIp
Sourcepub fn healthy_count(&self) -> usize
pub fn healthy_count(&self) -> usize
Get the number of healthy backends.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VirtualIp
impl RefUnwindSafe for VirtualIp
impl Send for VirtualIp
impl Sync for VirtualIp
impl Unpin for VirtualIp
impl UnwindSafe for VirtualIp
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)