pub struct HttpReloadSnapshot {
pub active_generation: u64,
pub active_inflight: usize,
pub reload_in_progress: bool,
pub successful_reloads: u64,
pub failed_reloads: u64,
pub rollbacks: u64,
}Expand description
Payload-free state and counters for a reloadable HTTP host.
Fields§
§active_generation: u64Generation currently selected for new requests.
active_inflight: usizeRequests currently executing on the selected generation.
reload_in_progress: boolWhether one prepare/switch/drain transaction is active.
successful_reloads: u64Reloads that switched and drained successfully.
failed_reloads: u64Failed reload attempts, including controlled rollbacks.
rollbacks: u64Switches restored to the prior generation.
Trait Implementations§
Source§impl Clone for HttpReloadSnapshot
impl Clone for HttpReloadSnapshot
Source§fn clone(&self) -> HttpReloadSnapshot
fn clone(&self) -> HttpReloadSnapshot
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 moreimpl Copy for HttpReloadSnapshot
Source§impl Debug for HttpReloadSnapshot
impl Debug for HttpReloadSnapshot
impl Eq for HttpReloadSnapshot
Source§impl PartialEq for HttpReloadSnapshot
impl PartialEq for HttpReloadSnapshot
impl StructuralPartialEq for HttpReloadSnapshot
Auto Trait Implementations§
impl Freeze for HttpReloadSnapshot
impl RefUnwindSafe for HttpReloadSnapshot
impl Send for HttpReloadSnapshot
impl Sync for HttpReloadSnapshot
impl Unpin for HttpReloadSnapshot
impl UnsafeUnpin for HttpReloadSnapshot
impl UnwindSafe for HttpReloadSnapshot
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