Struct ntex::router::RouterBuilder [−][src]
pub struct RouterBuilder<T, U = ()> { /* fields omitted */ }
Implementations
Make router case insensitive. Only static segments could be case insensitive.
By default router is case sensitive.
pub fn path<P>(
&mut self,
path: P,
resource: T
) -> &mut (ResourceDef, T, Option<U>) where
P: IntoPattern,
pub fn path<P>(
&mut self,
path: P,
resource: T
) -> &mut (ResourceDef, T, Option<U>) where
P: IntoPattern,
Register resource for specified path.
Register resource for specified path prefix.
Register resource for ResourceDef
Auto Trait Implementations
impl<T, U> RefUnwindSafe for RouterBuilder<T, U> where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for RouterBuilder<T, U> where
T: Send,
U: Send,
impl<T, U> Sync for RouterBuilder<T, U> where
T: Sync,
U: Sync,
impl<T, U> Unpin for RouterBuilder<T, U> where
T: Unpin,
U: Unpin,
impl<T, U> UnwindSafe for RouterBuilder<T, U> where
T: UnwindSafe,
U: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more