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