Struct actix_web_lab::respond::MessagePack
source · pub struct MessagePack<T>(pub T);Available on crate feature
msgpack only.Expand description
MessagePack responder.
If you require the fields to be named, use MessagePackNamed.
Tuple Fields§
§0: TTrait Implementations§
source§impl<T: Debug> Debug for MessagePack<T>
impl<T: Debug> Debug for MessagePack<T>
source§impl<T> Deref for MessagePack<T>
impl<T> Deref for MessagePack<T>
source§impl<T> DerefMut for MessagePack<T>
impl<T> DerefMut for MessagePack<T>
source§impl<T> Display for MessagePack<T>where
T: Display,
impl<T> Display for MessagePack<T>where
T: Display,
source§impl<T: Serialize> Responder for MessagePack<T>
impl<T: Serialize> Responder for MessagePack<T>
type Body = Bytes
source§fn respond_to(self, _req: &HttpRequest) -> HttpResponse<Self::Body>
fn respond_to(self, _req: &HttpRequest) -> HttpResponse<Self::Body>
Convert self to
HttpResponse.Auto Trait Implementations§
impl<T> Freeze for MessagePack<T>where
T: Freeze,
impl<T> RefUnwindSafe for MessagePack<T>where
T: RefUnwindSafe,
impl<T> Send for MessagePack<T>where
T: Send,
impl<T> Sync for MessagePack<T>where
T: Sync,
impl<T> Unpin for MessagePack<T>where
T: Unpin,
impl<T> UnwindSafe for MessagePack<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T, A> DynAccess<T> for A
impl<T, A> DynAccess<T> for A
source§fn load(&self) -> DynGuard<T>
fn load(&self) -> DynGuard<T>
The equivalent of
Access::load.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more