Struct InvalidUtf8
pub struct InvalidUtf8(/* private field */);
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) -> StringGet the response body text used for this rejection.
fn status(&self) -> StatusCodeGet the status code used for this rejection.
Trait Implementations
impl Debug for InvalidUtf8
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for InvalidUtf8
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Error for InvalidUtf8
fn source(&self) -> Option<&dyn Error + 'static>
impl IntoResponse for InvalidUtf8
fn into_response(self) -> Response
Auto Trait Implementations
impl !RefUnwindSafe for InvalidUtf8
impl !UnwindSafe for InvalidUtf8
impl Freeze for InvalidUtf8
impl Send for InvalidUtf8
impl Sync for InvalidUtf8
impl Unpin for InvalidUtf8
impl UnsafeUnpin for InvalidUtf8
Blanket Implementations
impl<T> Any for InvalidUtf8
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for InvalidUtf8
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for InvalidUtf8
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for InvalidUtf8
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for InvalidUtf8
impl<T> ToString for InvalidUtf8
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T> WithSubscriber for InvalidUtf8
impl<T, U> Into<U> for InvalidUtf8
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for InvalidUtf8
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for InvalidUtf8
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>