pub struct ProtobufDecodeError(/* private fields */);
Available on crate feature
protobuf
only.Expand description
Rejection type for Protobuf
.
This rejection is used if the request body couldn’t be decoded into the target type.
Trait Implementations§
Source§impl Debug for ProtobufDecodeError
impl Debug for ProtobufDecodeError
Source§impl Display for ProtobufDecodeError
impl Display for ProtobufDecodeError
Source§impl Error for ProtobufDecodeError
impl Error for ProtobufDecodeError
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()
Source§impl From<ProtobufDecodeError> for ProtobufRejection
impl From<ProtobufDecodeError> for ProtobufRejection
Source§fn from(inner: ProtobufDecodeError) -> Self
fn from(inner: ProtobufDecodeError) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for ProtobufDecodeError
impl IntoResponse for ProtobufDecodeError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for ProtobufDecodeError
impl !RefUnwindSafe for ProtobufDecodeError
impl Send for ProtobufDecodeError
impl Sync for ProtobufDecodeError
impl Unpin for ProtobufDecodeError
impl !UnwindSafe for ProtobufDecodeError
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