Skip to main content

RouteRef

Type Alias RouteRef 

Source
pub type RouteRef = Arc<Route>;
Expand description

Shared route handle.

A Route contains non-cloneable behavior (guards/middleware/lifecycle). To make route trees cheap to share and cache, the canonical way to pass routes around is via Arc<Route>.

Aliased Typeยง

pub struct RouteRef { /* private fields */ }