pub trait HttpAdmission: MaybeSend + MaybeSync {
// Required method
fn admit<'a>(
&'a self,
request: &'a AdmitRequest<'a>,
) -> BoxFuture<'a, Result<AdmitDecision, ServerError>>;
// Provided method
fn is_configured(&self) -> bool { ... }
}Expand description
§3 step 11: read Admission, when configured.
Required Methods§
Sourcefn admit<'a>(
&'a self,
request: &'a AdmitRequest<'a>,
) -> BoxFuture<'a, Result<AdmitDecision, ServerError>>
fn admit<'a>( &'a self, request: &'a AdmitRequest<'a>, ) -> BoxFuture<'a, Result<AdmitDecision, ServerError>>
Admit or challenge one read.
Provided Methods§
Sourcefn is_configured(&self) -> bool
fn is_configured(&self) -> bool
Whether read Admission is configured. A 304 then selects the private
cache policy, without calling Self::admit (§5.3).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".