Skip to main content

IntoRoute

Trait IntoRoute 

Source
pub trait IntoRoute {
    type IntoRoute: Route;

    // Required method
    fn into_route(self) -> Self::IntoRoute;
}

Required Associated Types§

Required Methods§

Source

fn into_route(self) -> Self::IntoRoute

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl IntoRoute for MemoryFile

Available on crate feature fs only.
Source§

type IntoRoute = MemoryFileRoute

Source§

impl IntoRoute for StaticFile

Available on crate feature fs only.
Source§

type IntoRoute = StaticFileRoute

Source§

impl IntoRoute for StaticFileOwned

Available on crate feature fs only.
Source§

type IntoRoute = StaticFileRoute

Source§

impl IntoRoute for StaticFiles

Available on crate feature fs only.
Source§

type IntoRoute = StaticFilesRoute

Source§

impl IntoRoute for StaticFilesOwned

Available on crate feature fs only.
Source§

type IntoRoute = StaticFilesRoute

Source§

impl<R> IntoRoute for R
where R: Route,