pub struct MsgPack<T>(pub T);Expand description
A wrapper type for MessagePack serialization and deserialization.
When the axum feature is enabled, this type implements Axum’s
FromRequest and IntoResponse traits.
Tuple Fields§
§0: TImplementations§
Source§impl<T> MsgPack<T>
impl<T> MsgPack<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consume the wrapper and return the inner value.
Trait Implementations§
Source§impl<T: Ord> Ord for MsgPack<T>
impl<T: Ord> Ord for MsgPack<T>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd> PartialOrd for MsgPack<T>
impl<T: PartialOrd> PartialOrd for MsgPack<T>
impl<T: Copy> Copy for MsgPack<T>
impl<T: Eq> Eq for MsgPack<T>
impl<T> StructuralPartialEq for MsgPack<T>
Auto Trait Implementations§
impl<T> Freeze for MsgPack<T>where
T: Freeze,
impl<T> RefUnwindSafe for MsgPack<T>where
T: RefUnwindSafe,
impl<T> Send for MsgPack<T>where
T: Send,
impl<T> Sync for MsgPack<T>where
T: Sync,
impl<T> Unpin for MsgPack<T>where
T: Unpin,
impl<T> UnwindSafe for MsgPack<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