Struct sqs_worker::ConfigBuilder
source · pub struct ConfigBuilder { /* private fields */ }
Expand description
Builder for Config
.
Implementations§
source§impl ConfigBuilder
impl ConfigBuilder
sourcepub fn check_interval(self, value: Duration) -> Self
pub fn check_interval(self, value: Duration) -> Self
How often to check for new messages, defaults to 5 seconds
sourcepub fn auto_ack(self, value: bool) -> Self
pub fn auto_ack(self, value: bool) -> Self
Determines if messages should be automatically acknowledges.
Defaults to true, if disabled you must manually ack the message by calling sqs_listener_client.ack(message)
source§impl ConfigBuilder
impl ConfigBuilder
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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