pub struct HttpEraCache { /* private fields */ }Expand description
Per-bundle era cache that cannot be contaminated by origin-only matches.
Implementations§
Source§impl HttpEraCache
impl HttpEraCache
Sourcepub fn classify_or_cached(
&mut self,
bundle: &HttpEndpointBundle,
probe: HttpModernProbe,
) -> HttpEraDecision
pub fn classify_or_cached( &mut self, bundle: &HttpEndpointBundle, probe: HttpModernProbe, ) -> HttpEraDecision
Classifies one configured bundle once or returns its immutable cached era.
Sourcepub fn invalidate(&mut self, key: &HttpEndpointBundleKey) -> Option<ProtocolEra>
pub fn invalidate(&mut self, key: &HttpEndpointBundleKey) -> Option<ProtocolEra>
Explicit trusted invalidation removes only one exact bundle key.
Sourcepub fn selected_era(&self, key: &HttpEndpointBundleKey) -> Option<ProtocolEra>
pub fn selected_era(&self, key: &HttpEndpointBundleKey) -> Option<ProtocolEra>
Returns an era only for the exact full bundle key.
Trait Implementations§
Source§impl Debug for HttpEraCache
impl Debug for HttpEraCache
Source§impl Default for HttpEraCache
impl Default for HttpEraCache
Source§fn default() -> HttpEraCache
fn default() -> HttpEraCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HttpEraCache
impl RefUnwindSafe for HttpEraCache
impl Send for HttpEraCache
impl Sync for HttpEraCache
impl Unpin for HttpEraCache
impl UnsafeUnpin for HttpEraCache
impl UnwindSafe for HttpEraCache
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).