pub trait RouterExt<S>: Sized {
// Required methods
fn with_rate_limit(
self,
limits: &RateLimitState,
per_second: u64,
scope: &'static str,
) -> Result<Self, LoaderError>;
fn with_auth<L: ContextLayer>(self, auth: L, policy: AuthzPolicy) -> Self;
}Required Methods§
fn with_rate_limit( self, limits: &RateLimitState, per_second: u64, scope: &'static str, ) -> Result<Self, LoaderError>
fn with_auth<L: ContextLayer>(self, auth: L, policy: AuthzPolicy) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".