Enum axum_codec::CodecRejection
source · pub enum CodecRejection {
Bytes(BytesRejection),
Json(Error),
}
Expand description
Variants§
Bytes(BytesRejection)
Json(Error)
Implementations§
Trait Implementations§
source§impl Debug for CodecRejection
impl Debug for CodecRejection
source§impl Display for CodecRejection
impl Display for CodecRejection
source§impl Error for CodecRejection
impl Error for CodecRejection
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<BytesRejection> for CodecRejection
impl From<BytesRejection> for CodecRejection
source§fn from(source: BytesRejection) -> Self
fn from(source: BytesRejection) -> Self
Converts to this type from the input type.
source§impl From<Error> for CodecRejection
impl From<Error> for CodecRejection
source§impl IntoCodecResponse for CodecRejection
impl IntoCodecResponse for CodecRejection
fn into_codec_response(self, content_type: ContentType) -> Response
Auto Trait Implementations§
impl Freeze for CodecRejection
impl !RefUnwindSafe for CodecRejection
impl Send for CodecRejection
impl Sync for CodecRejection
impl Unpin for CodecRejection
impl !UnwindSafe for CodecRejection
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