routing::bedrock::with_default

Trait WithDefault

Source
pub trait WithDefault {
    // Required method
    fn with_default(self, request: Request) -> Self;
}

Required Methods§

Source

fn with_default(self, request: Request) -> Self

Returns a router that exceptions a None request, supplying the provided default.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T: CapabilityBound> WithDefault for Router<T>

Source§

fn with_default(self, request: Request) -> Self

Implementors§