Enum actix_web::error::UrlGenerationError
source · pub enum UrlGenerationError {
ResourceNotFound,
NotEnoughElements,
ParseError(UrlParseError),
}
Expand description
Errors which can occur when attempting to generate resource uri.
Variants
ResourceNotFound
Resource not found
NotEnoughElements
Not all path pattern covered
ParseError(UrlParseError)
URL parse error
Trait Implementations
sourceimpl Debug for UrlGenerationError
impl Debug for UrlGenerationError
sourceimpl Display for UrlGenerationError
impl Display for UrlGenerationError
sourceimpl Fail for UrlGenerationError
impl Fail for UrlGenerationError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl From<ParseError> for UrlGenerationError
impl From<ParseError> for UrlGenerationError
sourcefn from(err: UrlParseError) -> Self
fn from(err: UrlParseError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<UrlGenerationError> for UrlGenerationError
impl PartialEq<UrlGenerationError> for UrlGenerationError
sourcefn eq(&self, other: &UrlGenerationError) -> bool
fn eq(&self, other: &UrlGenerationError) -> bool
sourceimpl ResponseError for UrlGenerationError
impl ResponseError for UrlGenerationError
InternalServerError
for UrlGeneratorError
sourcefn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Create response for error Read more
impl StructuralPartialEq for UrlGenerationError
Auto Trait Implementations
impl RefUnwindSafe for UrlGenerationError
impl Send for UrlGenerationError
impl Sync for UrlGenerationError
impl Unpin for UrlGenerationError
impl UnwindSafe for UrlGenerationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more