pub struct AdminState {
pub metrics: Arc<MetricsRegistry>,
pub start_time: Instant,
pub readiness: Arc<AtomicBool>,
pub active_connections: Option<Arc<AtomicU64>>,
pub provider: Arc<dyn AdminSnapshotProvider>,
pub udp_registry: Arc<UdpAssociationRegistry>,
pub reverse_registry: Arc<ReverseRegistry>,
pub metrics_enabled: bool,
pub auth: Option<AdminAuthConfig>,
}Fields§
§metrics: Arc<MetricsRegistry>§start_time: Instant§readiness: Arc<AtomicBool>§active_connections: Option<Arc<AtomicU64>>§provider: Arc<dyn AdminSnapshotProvider>§udp_registry: Arc<UdpAssociationRegistry>§reverse_registry: Arc<ReverseRegistry>Registry of reverse servers. Empty by default — populating it
enables the /-/reverse admin route.
metrics_enabled: boolWhether the /metrics endpoint is enabled.
auth: Option<AdminAuthConfig>Implementations§
Source§impl AdminState
impl AdminState
pub fn snapshot(&self) -> AdminSnapshot
pub fn generation(&self) -> u64
Trait Implementations§
Source§impl Clone for AdminState
impl Clone for AdminState
Source§fn clone(&self) -> AdminState
fn clone(&self) -> AdminState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for AdminState
impl !UnwindSafe for AdminState
impl Freeze for AdminState
impl Send for AdminState
impl Sync for AdminState
impl Unpin for AdminState
impl UnsafeUnpin for AdminState
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