pub struct AppError(/* private fields */);Expand description
Wraps bezant::Error so axum handlers can bubble errors with ?.
The inner error is deliberately private — the HTTP surface exposes
status + code + message, not the whole typed variant. Construct via
From<bezant::Error> (i.e. the ? operator) rather than a literal.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AppError
impl !UnwindSafe for AppError
impl Freeze for AppError
impl Send for AppError
impl Sync for AppError
impl Unpin for AppError
impl UnsafeUnpin for AppError
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