pub struct MessageMetaJson<T>(pub T);
Expand description
Extracts a JSON-serializable type from a message frame’s meta.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T: Clone> Clone for MessageMetaJson<T>
impl<T: Clone> Clone for MessageMetaJson<T>
Source§fn clone(&self) -> MessageMetaJson<T>
fn clone(&self) -> MessageMetaJson<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for MessageMetaJson<T>
impl<T: Debug> Debug for MessageMetaJson<T>
Source§impl<T, State> Extractor<State> for MessageMetaJson<T>where
T: DeserializeOwned,
impl<T, State> Extractor<State> for MessageMetaJson<T>where
T: DeserializeOwned,
Source§type Error = MessageFrameError
type Error = MessageFrameError
The error type for this extractor. Anything that can be converted into an extractor error
can be used as an error type. Read more
Source§fn extract(frame: Frame, context: &Context<State>) -> Result<Self, Self::Error>where
Self: Sized,
fn extract(frame: Frame, context: &Context<State>) -> Result<Self, Self::Error>where
Self: Sized,
Take an frame and a state and return a result containing the extracted value or the frame.
Source§impl<T: PartialEq> PartialEq for MessageMetaJson<T>
impl<T: PartialEq> PartialEq for MessageMetaJson<T>
impl<T: Eq> Eq for MessageMetaJson<T>
impl<T> StructuralPartialEq for MessageMetaJson<T>
Auto Trait Implementations§
impl<T> Freeze for MessageMetaJson<T>where
T: Freeze,
impl<T> RefUnwindSafe for MessageMetaJson<T>where
T: RefUnwindSafe,
impl<T> Send for MessageMetaJson<T>where
T: Send,
impl<T> Sync for MessageMetaJson<T>where
T: Sync,
impl<T> Unpin for MessageMetaJson<T>where
T: Unpin,
impl<T> UnwindSafe for MessageMetaJson<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