pub struct Message(pub MessageFrame);
Expand description
Retrieve a MessageFrame
from a Frame
, but only if the frame is a message.
Tuple Fields§
§0: MessageFrame
Trait 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, _: &Context<State>) -> Result<Self, Self::Error>
fn extract(frame: Frame, _: &Context<State>) -> Result<Self, Self::Error>
Take an frame and a state and return a result containing the extracted value or the frame.
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