Enum ntex::web::error::UrlGenerationError [−][src]
pub enum UrlGenerationError { ResourceNotFound, NotEnoughElements, }
Expand description
Errors which can occur when attempting to generate resource uri.
Variants
Resource not found
Not all path pattern covered
Trait Implementations
impl Debug for UrlGenerationError
[src]
impl Debug for UrlGenerationError
[src]impl Display for UrlGenerationError
[src]
impl Display for UrlGenerationError
[src]impl WebResponseError<DefaultError> for UrlGenerationError
[src]
impl WebResponseError<DefaultError> for UrlGenerationError
[src]InternalServerError
for UrlGeneratorError
fn status_code(&self) -> StatusCode
[src]
fn status_code(&self) -> StatusCode
[src]Response’s status code Read more
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]Generate response for error Read more
impl StructuralPartialEq for UrlGenerationError
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self