pub enum Message {
Subscription {
channel: String,
subscriptions: i64,
},
Unsubscription {
channel: String,
subscriptions: i64,
},
Message {
channel: String,
message: String,
},
PatternSubscription {
channel: String,
subscriptions: i64,
},
PatternUnsubscription {
channel: String,
subscriptions: i64,
},
PatternMessage {
pattern: String,
channel: String,
message: String,
},
Connected,
Disconnected(Error),
Error(Error),
}
Variants§
Subscription
Unsubscription
Message
PatternSubscription
PatternUnsubscription
PatternMessage
Connected
Disconnected(Error)
Error(Error)
Implementations§
Source§impl Message
impl Message
pub const fn is_subscription(&self) -> bool
pub const fn is_pattern_subscription(&self) -> bool
pub const fn is_unsubscription(&self) -> bool
pub const fn is_pattern_unsubscription(&self) -> bool
pub const fn is_message(&self) -> bool
pub const fn is_pattern_message(&self) -> bool
pub const fn is_connected(&self) -> bool
pub const fn is_disconnected(&self) -> bool
pub const fn is_error(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl !RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl !UnwindSafe for Message
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