Enum StringRejection
enum StringRejection
Rejection used for String.
Contains one variant for each way the String extractor can fail.
Variants
-
FailedToBufferBody(FailedToBufferBody) -
InvalidUtf8(InvalidUtf8)
Implementations
impl StringRejection
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 StringRejection
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Display for StringRejection
fn fmt(self: &Self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result
impl Error for StringRejection
fn source(self: &Self) -> Option<&dyn std::error::Error + 'static>
impl Freeze for StringRejection
impl From for StringRejection
fn from(inner: InvalidUtf8) -> Self
impl From for StringRejection
fn from(inner: FailedToBufferBody) -> Self
impl IntoResponse for StringRejection
fn into_response(self: Self) -> $crate::response::Response
impl RefUnwindSafe for StringRejection
impl Send for StringRejection
impl Sync for StringRejection
impl Unpin for StringRejection
impl UnwindSafe for StringRejection
impl<T> Any for StringRejection
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for StringRejection
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for StringRejection
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for StringRejection
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for StringRejection
impl<T> ToString for StringRejection
fn to_string(self: &Self) -> String
impl<T> WithSubscriber for StringRejection
impl<T, U> Into for StringRejection
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 StringRejection
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for StringRejection
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>