pub enum MsgPackError {
Overflow,
ContentType,
Deserialize(Error),
Serialize(Error),
Payload(PayloadError),
}
Variants§
Overflow
Payload size is bigger than limit
ContentType
Content type error
Deserialize(Error)
Deserialize error
Serialize(Error)
Serialize error
Payload(PayloadError)
Payload error
Trait Implementations§
Source§impl Debug for MsgPackError
impl Debug for MsgPackError
Source§impl Display for MsgPackError
impl Display for MsgPackError
Source§impl From<Error> for MsgPackError
impl From<Error> for MsgPackError
Source§fn from(err: RmpSerdeDecodeError) -> MsgPackError
fn from(err: RmpSerdeDecodeError) -> MsgPackError
Converts to this type from the input type.
Source§impl From<PayloadError> for MsgPackError
impl From<PayloadError> for MsgPackError
Source§fn from(err: PayloadError) -> MsgPackError
fn from(err: PayloadError) -> MsgPackError
Converts to this type from the input type.
Source§impl ResponseError for MsgPackError
impl ResponseError for MsgPackError
Source§fn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Creates full response for error. Read more
Source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Returns appropriate status code for error. Read more
Auto Trait Implementations§
impl Freeze for MsgPackError
impl !RefUnwindSafe for MsgPackError
impl Send for MsgPackError
impl Sync for MsgPackError
impl Unpin for MsgPackError
impl !UnwindSafe for MsgPackError
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