pub struct HttpMeta(pub HttpFrameMeta);
Expand description
Extract the URI of a message from a frame.
Tuple Fields§
§0: HttpFrameMeta
Trait Implementations§
Source§impl<State> Extractor<State> for HttpMeta
impl<State> Extractor<State> for HttpMeta
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.
impl Eq for HttpMeta
impl StructuralPartialEq for HttpMeta
Auto Trait Implementations§
impl Freeze for HttpMeta
impl RefUnwindSafe for HttpMeta
impl Send for HttpMeta
impl Sync for HttpMeta
impl Unpin for HttpMeta
impl UnwindSafe for HttpMeta
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