Struct axum_msgpack::MsgPack [−][src]
pub struct MsgPack<T>(pub T);Tuple Fields
0: TTrait Implementations
type Rejection = MsgPackRejection
type Rejection = MsgPackRejection
If the extractor fails it’ll use this “rejection” type. A rejection is a kind of error that can be converted into a response. Read more
fn from_request<'life0, 'async_trait>(
req: &'life0 mut RequestParts<B>
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Rejection>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn from_request<'life0, 'async_trait>(
req: &'life0 mut RequestParts<B>
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Rejection>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Perform the extraction.
type BodyError = Infallible
type BodyError = Infallible
The error type Self::Body might generate. Read more
Create a response.
Auto Trait Implementations
impl<T> RefUnwindSafe for MsgPack<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for MsgPack<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more