pub struct PubSubMessage {
pub channel: String,
pub payload: String,
pub pattern: Option<String>,
}Expand description
A message received from a Redis channel
Fields§
§channel: StringThe channel the message was received on
payload: StringThe message payload
pattern: Option<String>The pattern that matched (for pattern subscriptions)
Trait Implementations§
Source§impl Clone for PubSubMessage
impl Clone for PubSubMessage
Source§fn clone(&self) -> PubSubMessage
fn clone(&self) -> PubSubMessage
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 moreAuto Trait Implementations§
impl Freeze for PubSubMessage
impl RefUnwindSafe for PubSubMessage
impl Send for PubSubMessage
impl Sync for PubSubMessage
impl Unpin for PubSubMessage
impl UnwindSafe for PubSubMessage
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