pub struct ManagerConfig {
pub group: Cow<'static, str>,
pub consumer: Cow<'static, str>,
pub kind: ConsumerKind,
pub poll_time: Duration,
pub max_pending_time: Duration,
}
Expand description
Manager configuration.
Fields§
§group: Cow<'static, str>
Group name
All tasks will belong to this group
consumer: Cow<'static, str>
Consumer name
All tasks managed will be claimed by this consumer
kind: ConsumerKind
Consumer kind
poll_time: Duration
Blocking time while awaiting for new messages.
max_pending_time: Duration
Duration for which tasks are allowed to remain in queue in order to retry it later.
Once tasks expires over this time, it shall be deleted from queue.
Trait Implementations§
Source§impl Clone for ManagerConfig
impl Clone for ManagerConfig
Source§fn clone(&self) -> ManagerConfig
fn clone(&self) -> ManagerConfig
Returns a copy 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 ManagerConfig
impl RefUnwindSafe for ManagerConfig
impl Send for ManagerConfig
impl Sync for ManagerConfig
impl Unpin for ManagerConfig
impl UnwindSafe for ManagerConfig
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