pub struct NotFound { /* private fields */ }Expand description
A 404 - Not Found error.
Used when the application expected some entity to exist, but it didn’t.
Implementations§
Trait Implementations§
Source§impl CustomProblem for NotFound
impl CustomProblem for NotFound
Source§fn problem_type(&self) -> Uri
fn problem_type(&self) -> Uri
A URI reference that identifies the problem type. Read more
Source§fn title(&self) -> &'static str
fn title(&self) -> &'static str
A short, human-readable summary of the problem type. Read more
Source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
The HTTP status code for this problem type. Read more
Source§fn add_extensions(&self, extensions: &mut Extensions)
fn add_extensions(&self, extensions: &mut Extensions)
Add extensions to the final problem instance. Read more
Source§impl Error for NotFound
impl Error for NotFound
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for NotFound
impl RefUnwindSafe for NotFound
impl Send for NotFound
impl Sync for NotFound
impl Unpin for NotFound
impl UnsafeUnpin for NotFound
impl UnwindSafe for NotFound
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