Skip to main content

routes_with_options

Function routes_with_options 

Source
pub fn routes_with_options<S: TranscodeState>(
    pool: &DescriptorPool,
    aliases: &[AliasConfig],
    options: &TranscodeOptions,
) -> Router<S>
Expand description

routes, built as options describe.

A second binding for a method and path already taken (or any binding on a path a custom * rule takes, which answers every method) is skipped with an error in the log.