pub enum RespError {
InvalidData(Bytes),
NoAuth,
Internal,
}Expand description
A lightweight RESP error for mapping failures to protocol responses.
Variants§
InvalidData(Bytes)
Invalid client data or protocol violation.
NoAuth
Authentication required.
Internal
Internal server error.
Implementations§
Trait Implementations§
Source§impl IntoResponse for RespError
impl IntoResponse for RespError
fn into_response(self) -> Response
impl Eq for RespError
impl StructuralPartialEq for RespError
Auto Trait Implementations§
impl !Freeze for RespError
impl RefUnwindSafe for RespError
impl Send for RespError
impl Sync for RespError
impl Unpin for RespError
impl UnwindSafe for RespError
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