Enum viz_core::types::PayloadError
source · [−]pub enum PayloadError {
Read,
Parse,
MissingBoundary,
Utf8(FromUtf8Error),
Hyper(Error),
Json(Error),
UrlDecode(Error),
LengthRequired,
TooLarge,
UnsupportedMediaType(Mime),
Data(&'static str),
}
Variants
Read
400
Parse
400
MissingBoundary
400
Utf8(FromUtf8Error)
400
Hyper(Error)
400
Json(Error)
Available on crate feature
json
only.400
UrlDecode(Error)
Available on crate features
form
or query
only.400
LengthRequired
411
TooLarge
413
UnsupportedMediaType(Mime)
415
Data(&'static str)
500
Trait Implementations
sourceimpl Debug for PayloadError
impl Debug for PayloadError
sourceimpl Display for PayloadError
impl Display for PayloadError
sourceimpl Error for PayloadError
impl Error for PayloadError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<Error> for PayloadError
impl From<Error> for PayloadError
sourceimpl From<Error> for PayloadError
impl From<Error> for PayloadError
sourceimpl From<Error> for PayloadError
impl From<Error> for PayloadError
sourceimpl From<FromUtf8Error> for PayloadError
impl From<FromUtf8Error> for PayloadError
sourcefn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
sourceimpl From<PayloadError> for Error
impl From<PayloadError> for Error
sourcefn from(e: PayloadError) -> Self
fn from(e: PayloadError) -> Self
Converts to this type from the input type.
sourceimpl IntoResponse for PayloadError
impl IntoResponse for PayloadError
fn into_response(self) -> Response
fn into_error(self) -> Error
Auto Trait Implementations
impl !RefUnwindSafe for PayloadError
impl Send for PayloadError
impl Sync for PayloadError
impl Unpin for PayloadError
impl !UnwindSafe for PayloadError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more