pub struct MessageSenderOptions { /* private fields */ }Expand description
Options for MessageSender.
Implementations§
Source§impl MessageSenderOptions
impl MessageSenderOptions
Sourcepub fn with_max_attempts(max_attempts: usize) -> Self
pub fn with_max_attempts(max_attempts: usize) -> Self
Creates options with a custom maximum attempt count.
Values below 1 are clamped to 1.
Sourcepub fn set_max_attempts(&mut self, max_attempts: usize) -> &mut Self
pub fn set_max_attempts(&mut self, max_attempts: usize) -> &mut Self
Sets the maximum number of attempts for one logical send or reply.
Values below 1 are clamped to 1.
Sourcepub fn max_attempts(&self) -> usize
pub fn max_attempts(&self) -> usize
Returns the configured maximum attempt count.
Trait Implementations§
Source§impl Clone for MessageSenderOptions
impl Clone for MessageSenderOptions
Source§fn clone(&self) -> MessageSenderOptions
fn clone(&self) -> MessageSenderOptions
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 moreSource§impl Debug for MessageSenderOptions
impl Debug for MessageSenderOptions
Source§impl Default for MessageSenderOptions
impl Default for MessageSenderOptions
impl Eq for MessageSenderOptions
Source§impl PartialEq for MessageSenderOptions
impl PartialEq for MessageSenderOptions
impl StructuralPartialEq for MessageSenderOptions
Auto Trait Implementations§
impl Freeze for MessageSenderOptions
impl RefUnwindSafe for MessageSenderOptions
impl Send for MessageSenderOptions
impl Sync for MessageSenderOptions
impl Unpin for MessageSenderOptions
impl UnsafeUnpin for MessageSenderOptions
impl UnwindSafe for MessageSenderOptions
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