Enum poem::error::RouteError
source · [−]pub enum RouteError {
InvalidPath(String),
Duplicate(String),
InvalidRegex {
path: String,
regex: String,
},
}
Expand description
A possible error value occurred when adding a route.
Variants
InvalidPath(String)
Invalid path
Duplicate(String)
Duplicate path
InvalidRegex
Invalid regex in path
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
The status code of this error.
Auto Trait Implementations
impl RefUnwindSafe for RouteError
impl Send for RouteError
impl Sync for RouteError
impl Unpin for RouteError
impl UnwindSafe for RouteError
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
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