pub struct Upstream {
pub name: String,
/* private fields */
}Expand description
Upstream service with load balancing
Always uses Pingora’s LoadBalancer (even for single backend) for architectural simplicity. The <100ns overhead is negligible compared to network latency (~15µs for TCP loopback).
Fields§
§name: StringUpstream name (from config)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Upstream
impl !RefUnwindSafe for Upstream
impl Send for Upstream
impl Sync for Upstream
impl Unpin for Upstream
impl !UnwindSafe for Upstream
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