pub struct Topic(pub String);Available on crate feature
router only.Expand description
An extractor for the topic portion of a Message
Tuple Fields§
§0: StringTrait Implementations§
Source§impl<S> FromRequest<S> for Topic
Extracts the Message::topic from a Request and wraps it in a Topic.
impl<S> FromRequest<S> for Topic
Extracts the Message::topic from a Request and wraps it in a Topic.
fn from_request(request: &Request<S>) -> RouterResult<Self>
Auto Trait Implementations§
impl Freeze for Topic
impl RefUnwindSafe for Topic
impl Send for Topic
impl Sync for Topic
impl Unpin for Topic
impl UnwindSafe for Topic
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