Enum perseus::errors::ErrorBlame
source · pub enum ErrorBlame {
Client(Option<u16>),
Server(Option<u16>),
}
Expand description
Defines who caused an ambiguous error message so we can reliably create an HTTP status code. Specific status codes may be provided in either case, or the defaults (400 for client, 500 for server) will be used.
The default implementation will produce a server-blamed 500 error.
Variants§
Trait Implementations§
source§impl Debug for ErrorBlame
impl Debug for ErrorBlame
Auto Trait Implementations§
impl RefUnwindSafe for ErrorBlame
impl Send for ErrorBlame
impl Sync for ErrorBlame
impl Unpin for ErrorBlame
impl UnwindSafe for ErrorBlame
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