Struct InvalidUtf8
struct InvalidUtf8(_)
Rejection type used when buffering the request into a String if the
body doesn't contain valid UTF-8.
Implementations
impl InvalidUtf8
fn body_text(self: &Self) -> StringGet the response body text used for this rejection.
fn status(self: &Self) -> http::StatusCodeGet the status code used for this rejection.
impl Debug for InvalidUtf8
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Display for InvalidUtf8
fn fmt(self: &Self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result
impl Error for InvalidUtf8
fn source(self: &Self) -> Option<&dyn std::error::Error + 'static>
impl Freeze for InvalidUtf8
impl IntoResponse for InvalidUtf8
fn into_response(self: Self) -> $crate::response::Response
impl RefUnwindSafe for InvalidUtf8
impl Send for InvalidUtf8
impl Sync for InvalidUtf8
impl Unpin for InvalidUtf8
impl UnwindSafe for InvalidUtf8
impl<T> Any for InvalidUtf8
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for InvalidUtf8
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for InvalidUtf8
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for InvalidUtf8
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for InvalidUtf8
impl<T> ToString for InvalidUtf8
fn to_string(self: &Self) -> String
impl<T> WithSubscriber for InvalidUtf8
impl<T, U> Into for InvalidUtf8
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for InvalidUtf8
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for InvalidUtf8
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>