pub struct PingoraHandle { /* private fields */ }Expand description
A handle to the proxy. Clone it freely. It is valid before and after boot.
Implementations§
Source§impl PingoraHandle
impl PingoraHandle
Sourcepub fn local_addr(&self) -> Option<SocketAddr>
pub fn local_addr(&self) -> Option<SocketAddr>
The bound address, after boot.
Sourcepub fn active_connections(&self) -> usize
pub fn active_connections(&self) -> usize
Open client connections.
Sourcepub fn upstream_health(&self) -> Vec<UpstreamHealth>
pub fn upstream_health(&self) -> Vec<UpstreamHealth>
Upstream health for each route, in route order.
Sourcepub fn metric_families(&self) -> Vec<MetricFamily>
pub fn metric_families(&self) -> Vec<MetricFamily>
The metric families, as /actuator/prometheus shows them.
Trait Implementations§
Source§impl Clone for PingoraHandle
impl Clone for PingoraHandle
Auto Trait Implementations§
impl !RefUnwindSafe for PingoraHandle
impl !UnwindSafe for PingoraHandle
impl Forget for PingoraHandle
impl Freeze for PingoraHandle
impl Send for PingoraHandle
impl Sync for PingoraHandle
impl Unpin for PingoraHandle
impl UnsafeUnpin for PingoraHandle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Scoped for T
impl<T> Scoped for T
Source§fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
Open a deferred
ScopeQuery for this type. Resolves the
registered scope at .load() time, not here.