Enum gotham::router::route::Delegation [−][src]
pub enum Delegation {
Internal,
External,
}
Expand description
Indicates whether this Route
will dispatch the request to an inner Router
instance. To
support inner Router
instances which handle a subtree, the Dispatcher
stores additional
context information.
Variants
This Route
is dispatching a request to a normal NewHandler
/ Handler
and does not
need to store any additional context information.
This Route
is dispatching a request to another Router
which handles a subtree. The path
segments already consumed by the current Router
will not be processed again.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Delegation
impl Send for Delegation
impl Sync for Delegation
impl Unpin for Delegation
impl UnwindSafe for Delegation
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
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