Skip to main content

RouterExt

Trait RouterExt 

Source
pub trait RouterExt<S>: Sized {
    // Required methods
    fn with_rate_limit(
        self,
        config: &Config,
        per_second: u64,
    ) -> Result<Self, LoaderError>;
    fn with_auth<L: ContextLayer>(self, auth: L, policy: AuthzPolicy) -> Self;
}

Required Methods§

Source

fn with_rate_limit( self, config: &Config, per_second: u64, ) -> Result<Self, LoaderError>

Source

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".

Implementations on Foreign Types§

Source§

impl<S> RouterExt<S> for Router<S>
where S: Clone + Send + Sync + 'static,

Source§

fn with_rate_limit( self, config: &Config, per_second: u64, ) -> Result<Self, LoaderError>

Source§

fn with_auth<L: ContextLayer>(self, auth: L, policy: AuthzPolicy) -> Self

Implementors§