pub struct PubSubSplitSink { /* private fields */ }Expand description
A pub sub Sink part of the split pair.
It allows to subscribe/unsubscribe to/from channels or patterns
Implementations§
Source§impl PubSubSplitSink
impl PubSubSplitSink
Sourcepub async fn subscribe<C, CC>(&mut self, channels: CC) -> Result<()>
pub async fn subscribe<C, CC>(&mut self, channels: CC) -> Result<()>
Subscribe to additional channels
Sourcepub async fn psubscribe<P, PP>(&mut self, patterns: PP) -> Result<()>
pub async fn psubscribe<P, PP>(&mut self, patterns: PP) -> Result<()>
Subscribe to additional patterns
Sourcepub async fn ssubscribe<C, CC>(&mut self, shardchannels: CC) -> Result<()>
pub async fn ssubscribe<C, CC>(&mut self, shardchannels: CC) -> Result<()>
Subscribe to additional shardchannels
Sourcepub async fn unsubscribe<C, CC>(&mut self, channels: CC) -> Result<()>
pub async fn unsubscribe<C, CC>(&mut self, channels: CC) -> Result<()>
Unsubscribe from the given channels
Sourcepub async fn punsubscribe<C, CC>(&mut self, patterns: CC) -> Result<()>
pub async fn punsubscribe<C, CC>(&mut self, patterns: CC) -> Result<()>
Unsubscribe from the given patterns
Sourcepub async fn sunsubscribe<C, CC>(&mut self, shardchannels: CC) -> Result<()>
pub async fn sunsubscribe<C, CC>(&mut self, shardchannels: CC) -> Result<()>
Unsubscribe from the given patterns
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PubSubSplitSink
impl !RefUnwindSafe for PubSubSplitSink
impl Send for PubSubSplitSink
impl Sync for PubSubSplitSink
impl Unpin for PubSubSplitSink
impl !UnwindSafe for PubSubSplitSink
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