pub struct PatternMessage {
pub topic: String,
pub message: IncomingMessage,
}Expand description
A message yielded by PatternConsumer::receive, carrying the topic it came from.
Fields§
§topic: StringThe topic the message originated from.
message: IncomingMessageUnderlying message + payload.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PatternMessage
impl RefUnwindSafe for PatternMessage
impl Send for PatternMessage
impl Sync for PatternMessage
impl Unpin for PatternMessage
impl UnsafeUnpin for PatternMessage
impl UnwindSafe for PatternMessage
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