#[non_exhaustive]pub struct HttpRoutingGenerationsSnapshot {
pub active: HttpRoutingGenerationSnapshot,
pub retiring: Option<HttpRoutingGenerationSnapshot>,
pub retained_generations: usize,
pub max_retained_generations: usize,
}Expand description
Bounded ownership snapshot for active and retiring routing generations.
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.active: HttpRoutingGenerationSnapshotGeneration selected for new requests.
retiring: Option<HttpRoutingGenerationSnapshot>Previous or failed generation retained only until its requests finish.
retained_generations: usizeNumber of generations retained by the reload owner.
max_retained_generations: usizeHard owner limit: one active generation and one retiring generation.
Trait Implementations§
Source§impl Clone for HttpRoutingGenerationsSnapshot
impl Clone for HttpRoutingGenerationsSnapshot
Source§fn clone(&self) -> HttpRoutingGenerationsSnapshot
fn clone(&self) -> HttpRoutingGenerationsSnapshot
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 HttpRoutingGenerationsSnapshot
impl Eq for HttpRoutingGenerationsSnapshot
impl StructuralPartialEq for HttpRoutingGenerationsSnapshot
Auto Trait Implementations§
impl Freeze for HttpRoutingGenerationsSnapshot
impl RefUnwindSafe for HttpRoutingGenerationsSnapshot
impl Send for HttpRoutingGenerationsSnapshot
impl Sync for HttpRoutingGenerationsSnapshot
impl Unpin for HttpRoutingGenerationsSnapshot
impl UnsafeUnpin for HttpRoutingGenerationsSnapshot
impl UnwindSafe for HttpRoutingGenerationsSnapshot
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