Enum ntex::web::error::UrlGenerationError
source · pub enum UrlGenerationError {
ResourceNotFound,
NotEnoughElements,
}
Expand description
Errors which can occur when attempting to generate resource uri.
Variants§
Trait Implementations§
source§impl Clone for UrlGenerationError
impl Clone for UrlGenerationError
source§fn clone(&self) -> UrlGenerationError
fn clone(&self) -> UrlGenerationError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UrlGenerationError
impl Debug for UrlGenerationError
source§impl Display for UrlGenerationError
impl Display for UrlGenerationError
source§impl Error for UrlGenerationError
impl Error for UrlGenerationError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for UrlGenerationError
impl PartialEq for UrlGenerationError
source§fn eq(&self, other: &UrlGenerationError) -> bool
fn eq(&self, other: &UrlGenerationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl WebResponseError for UrlGenerationError
impl WebResponseError for UrlGenerationError
InternalServerError
for UrlGeneratorError
source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Response’s status code Read more
source§fn error_response(&self, _: &HttpRequest) -> HttpResponse
fn error_response(&self, _: &HttpRequest) -> HttpResponse
Generate response for error Read more
impl Copy for UrlGenerationError
impl Eq for UrlGenerationError
impl StructuralPartialEq for UrlGenerationError
Auto Trait Implementations§
impl Freeze for UrlGenerationError
impl RefUnwindSafe for UrlGenerationError
impl Send for UrlGenerationError
impl Sync for UrlGenerationError
impl Unpin for UrlGenerationError
impl UnwindSafe for UrlGenerationError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more