Enum FailedToBufferBody

#[non_exhaustive]
pub enum FailedToBufferBody

Rejection type for extractors that buffer the request body. Used if the request body cannot be buffered due to an error.

Variants

LengthLimitError(LengthLimitError)
UnknownBodyError(UnknownBodyError)

Implementations

impl FailedToBufferBody

fn body_text(&self) -> String

Get the response body text used for this rejection.

fn status(&self) -> StatusCode

Get the status code used for this rejection.

Trait Implementations

impl Debug for FailedToBufferBody

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Display for FailedToBufferBody

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Error for FailedToBufferBody

fn source(&self) -> Option<&dyn Error + 'static>

impl From<LengthLimitError> for FailedToBufferBody

fn from(inner: LengthLimitError) -> Self

impl From<UnknownBodyError> for FailedToBufferBody

fn from(inner: UnknownBodyError) -> Self

impl IntoResponse for FailedToBufferBody

fn into_response(self) -> Response

Auto Trait Implementations

impl !RefUnwindSafe for FailedToBufferBody

impl !UnwindSafe for FailedToBufferBody

impl Freeze for FailedToBufferBody

impl Send for FailedToBufferBody

impl Sync for FailedToBufferBody

impl Unpin for FailedToBufferBody

impl UnsafeUnpin for FailedToBufferBody

Blanket Implementations

impl<T> Any for FailedToBufferBody where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for FailedToBufferBody where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for FailedToBufferBody where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for FailedToBufferBody

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for FailedToBufferBody

impl<T> ToString for FailedToBufferBody where T: Display + ?Sized,

fn to_string(&self) -> String

impl<T> WithSubscriber for FailedToBufferBody

impl<T, U> Into<U> for FailedToBufferBody where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for FailedToBufferBody where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for FailedToBufferBody where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>