Struct LengthLimitError
struct LengthLimitError(_)
Encountered some other error when buffering the body.
This can only happen when you're using tower_http::limit::RequestBodyLimitLayer or
otherwise wrapping request bodies in http_body_util::Limited.
Implementations
impl LengthLimitError
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 LengthLimitError
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Display for LengthLimitError
fn fmt(self: &Self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result
impl Error for LengthLimitError
fn source(self: &Self) -> Option<&dyn std::error::Error + 'static>
impl Freeze for LengthLimitError
impl IntoResponse for LengthLimitError
fn into_response(self: Self) -> $crate::response::Response
impl RefUnwindSafe for LengthLimitError
impl Send for LengthLimitError
impl Sync for LengthLimitError
impl Unpin for LengthLimitError
impl UnwindSafe for LengthLimitError
impl<T> Any for LengthLimitError
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for LengthLimitError
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for LengthLimitError
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for LengthLimitError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for LengthLimitError
impl<T> ToString for LengthLimitError
fn to_string(self: &Self) -> String
impl<T> WithSubscriber for LengthLimitError
impl<T, U> Into for LengthLimitError
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 LengthLimitError
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for LengthLimitError
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>