pub enum PubSubMessage {
Message {
channel: Vec<u8>,
payload: Bytes,
},
PatternMessage {
pattern: Vec<u8>,
channel: Vec<u8>,
payload: Bytes,
},
Subscribe {
channel: Vec<u8>,
count: usize,
},
Unsubscribe {
channel: Option<Vec<u8>>,
count: usize,
},
PSubscribe {
pattern: Vec<u8>,
count: usize,
},
PUnsubscribe {
pattern: Option<Vec<u8>>,
count: usize,
},
}Variants§
Implementations§
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 (const: unstable) · 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 UnsafeUnpin 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