pub trait WithDefault {
// Required method
fn with_default(self, request: Request) -> Self;
}
Required Methods§
Sourcefn with_default(self, request: Request) -> Self
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.