[−][src]Struct thruster_core::route_parser::RouteParser
Fields
route_tree: RouteTree<T>
shortcuts: HashMap<String, MiddlewareChain<T>>
Methods
impl<T: Context + Send> RouteParser<T>
[src]
pub fn new() -> RouteParser<T>
[src]
pub fn add_method_agnostic_middleware(
&mut self,
route: &str,
middleware: MiddlewareChain<T>
)
[src]
&mut self,
route: &str,
middleware: MiddlewareChain<T>
)
pub fn add_route(&mut self, route: &str, middleware: MiddlewareChain<T>)
[src]
pub fn optimize(&mut self)
[src]
pub fn match_route(&self, route: &str) -> MatchedRoute<T>
[src]
Trait Implementations
impl<T: Context + Send> Default for RouteParser<T>
[src]
fn default() -> RouteParser<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for RouteParser<T>
impl<T> Send for RouteParser<T>
impl<T> Sync for RouteParser<T>
impl<T> Unpin for RouteParser<T>
impl<T> !UnwindSafe for RouteParser<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,