pub struct PublisherConfig { /* private fields */ }Expand description
Configuration for the Redis publisher.
This struct holds the configuration settings needed to initialize and manage a Redis publisher instance, including the consumer group name for Redis streams.
Implementations§
Source§impl PublisherConfig
impl PublisherConfig
Sourcepub fn group_name(self, group_name: impl Into<String>) -> Self
pub fn group_name(self, group_name: impl Into<String>) -> Self
Sets the Redis stream consumer group name used by the publisher.
Sourcepub fn stream_length(self, length: usize) -> Self
pub fn stream_length(self, length: usize) -> Self
Sets the maximum length of the Redis stream.
Trait Implementations§
Source§impl Clone for PublisherConfig
impl Clone for PublisherConfig
Source§fn clone(&self) -> PublisherConfig
fn clone(&self) -> PublisherConfig
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 PublisherConfig
impl RefUnwindSafe for PublisherConfig
impl Send for PublisherConfig
impl Sync for PublisherConfig
impl Unpin for PublisherConfig
impl UnwindSafe for PublisherConfig
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