Struct UnknownBodyError
pub struct UnknownBodyError(/* private field */);
Encountered an unknown error when buffering the body.
Implementations
impl UnknownBodyError
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 UnknownBodyError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for UnknownBodyError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Error for UnknownBodyError
fn source(&self) -> Option<&dyn Error + 'static>
impl IntoResponse for UnknownBodyError
fn into_response(self) -> Response
Auto Trait Implementations
impl !RefUnwindSafe for UnknownBodyError
impl !UnwindSafe for UnknownBodyError
impl Freeze for UnknownBodyError
impl Send for UnknownBodyError
impl Sync for UnknownBodyError
impl Unpin for UnknownBodyError
impl UnsafeUnpin for UnknownBodyError
Blanket Implementations
impl<T> Any for UnknownBodyError
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for UnknownBodyError
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for UnknownBodyError
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for UnknownBodyError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for UnknownBodyError
impl<T> ToString for UnknownBodyError
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T> WithSubscriber for UnknownBodyError
impl<T, U> Into<U> for UnknownBodyError
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 UnknownBodyError
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for UnknownBodyError
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>