#[non_exhaustive]pub struct HttpRoutingGenerationSnapshot {
pub generation: u64,
pub accepting: bool,
pub inflight: usize,
}Expand description
Payload-free state for one HTTP routing generation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.generation: u64Monotonic identifier assigned by the composition root.
accepting: boolWhether this generation can admit a new request.
inflight: usizeRequests that currently retain this generation.
Trait Implementations§
Source§impl Clone for HttpRoutingGenerationSnapshot
impl Clone for HttpRoutingGenerationSnapshot
Source§fn clone(&self) -> HttpRoutingGenerationSnapshot
fn clone(&self) -> HttpRoutingGenerationSnapshot
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 HttpRoutingGenerationSnapshot
impl Eq for HttpRoutingGenerationSnapshot
impl StructuralPartialEq for HttpRoutingGenerationSnapshot
Auto Trait Implementations§
impl Freeze for HttpRoutingGenerationSnapshot
impl RefUnwindSafe for HttpRoutingGenerationSnapshot
impl Send for HttpRoutingGenerationSnapshot
impl Sync for HttpRoutingGenerationSnapshot
impl Unpin for HttpRoutingGenerationSnapshot
impl UnsafeUnpin for HttpRoutingGenerationSnapshot
impl UnwindSafe for HttpRoutingGenerationSnapshot
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