pub struct Backend {
pub address: String,
pub port: u16,
pub weight: u32,
pub healthy: bool,
pub active_connections: u32,
pub total_requests: u64,
}Expand description
A backend server in a virtual IP pool.
Fields§
§address: StringBackend address (IP string).
port: u16Backend port.
weight: u32Weight for weighted algorithms (1-100).
healthy: boolWhether the backend is healthy.
active_connections: u32Number of active connections.
total_requests: u64Total requests served.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Backend
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnwindSafe for Backend
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)