pub struct SubOptions { /* private fields */ }Implementations§
Source§impl SubOptions
impl SubOptions
Sourcepub fn with_ingress_queue_size(self, ingress_queue_size: usize) -> Self
pub fn with_ingress_queue_size(self, ingress_queue_size: usize) -> Self
Sets the ingress queue size. This is the maximum amount of incoming messages that will be buffered. If the consumer cannot keep up with the incoming messages, messages will start being dropped.
Default: DEFAULT_QUEUE_SIZE
Sourcepub fn with_read_buffer_size(self, read_buffer_size: usize) -> Self
pub fn with_read_buffer_size(self, read_buffer_size: usize) -> Self
Sets the read buffer size. This sets the size of the read buffer for each session.
Default: DEFAULT_BUFFER_SIZE
Sourcepub fn with_initial_backoff(self, initial_backoff: Duration) -> Self
pub fn with_initial_backoff(self, initial_backoff: Duration) -> Self
Set the initial backoff for reconnecting to a publisher.
Sourcepub fn with_retry_attempts(self, retry_attempts: usize) -> Self
pub fn with_retry_attempts(self, retry_attempts: usize) -> Self
Sets the maximum number of retry attempts. If None, the connection will retry
indefinitely.
Trait Implementations§
Source§impl Clone for SubOptions
impl Clone for SubOptions
Source§fn clone(&self) -> SubOptions
fn clone(&self) -> SubOptions
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 moreSource§impl Debug for SubOptions
impl Debug for SubOptions
Auto Trait Implementations§
impl Freeze for SubOptions
impl RefUnwindSafe for SubOptions
impl Send for SubOptions
impl Sync for SubOptions
impl Unpin for SubOptions
impl UnsafeUnpin for SubOptions
impl UnwindSafe for SubOptions
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