Struct intrepid_core::Message
source · pub struct Message(pub MessageFrame);Expand description
Retrieve a MessageFrame from a Frame, but only if the frame is a message.
Tuple Fields§
§0: MessageFrameTrait Implementations§
source§impl<State> Extractor<State> for Message
impl<State> Extractor<State> for Message
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, _: &ExtractContext<State>) -> Result<Self, Self::Error>
fn extract(frame: Frame, _: &ExtractContext<State>) -> Result<Self, Self::Error>
Take an frame and a state and return a result containing the extracted value or the frame.
source§fn extract_from_frame_and_state(
frame: Frame,
context: &ExtractContext<State>,
) -> Result<Self>
fn extract_from_frame_and_state( frame: Frame, context: &ExtractContext<State>, ) -> Result<Self>
Extract a value from a frame and state, returning a result containing the extracted value
or an error coerced into a
crate::Error.Auto Trait Implementations§
impl !Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)