pub struct AdminSnapshot {
pub generation: u64,
pub router: Arc<Router>,
pub pac: Option<PacConfig>,
pub static_routes: Vec<StaticRoute>,
pub listeners: Vec<ListenerInfo>,
}Expand description
Live data the admin server reads per request.
Implementations wrap the current CompiledRuntimeSnapshot so reloads are
reflected on the next request without restarting the admin server.
Fields§
§generation: u64§router: Arc<Router>§pac: Option<PacConfig>§static_routes: Vec<StaticRoute>§listeners: Vec<ListenerInfo>Trait Implementations§
Source§impl Clone for AdminSnapshot
impl Clone for AdminSnapshot
Source§fn clone(&self) -> AdminSnapshot
fn clone(&self) -> AdminSnapshot
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 AdminSnapshot
impl !UnwindSafe for AdminSnapshot
impl Freeze for AdminSnapshot
impl Send for AdminSnapshot
impl Sync for AdminSnapshot
impl Unpin for AdminSnapshot
impl UnsafeUnpin for AdminSnapshot
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