Struct apalis_redis::Config
source · pub struct Config { /* private fields */ }Expand description
Config for a RedisStorage
Implementations§
source§impl Config
impl Config
sourcepub fn get_fetch_interval(&self) -> &Duration
pub fn get_fetch_interval(&self) -> &Duration
Get the rate of polling per unit of time
sourcepub fn get_buffer_size(&self) -> usize
pub fn get_buffer_size(&self) -> usize
Get the number of jobs to fetch
sourcepub fn get_max_retries(&self) -> usize
pub fn get_max_retries(&self) -> usize
Get the max retries
sourcepub fn get_keep_alive(&self) -> &Duration
pub fn get_keep_alive(&self) -> &Duration
get the keep live rate
sourcepub fn get_enqueue_scheduled(&self) -> &Duration
pub fn get_enqueue_scheduled(&self) -> &Duration
get the enqueued setting
sourcepub fn set_fetch_interval(&mut self, fetch_interval: Duration)
pub fn set_fetch_interval(&mut self, fetch_interval: Duration)
get the fetch interval
sourcepub fn set_buffer_size(&mut self, buffer_size: usize)
pub fn set_buffer_size(&mut self, buffer_size: usize)
set the buffer setting
sourcepub fn set_max_retries(&mut self, max_retries: usize)
pub fn set_max_retries(&mut self, max_retries: usize)
set the max-retries setting
sourcepub fn set_keep_alive(&mut self, keep_alive: Duration)
pub fn set_keep_alive(&mut self, keep_alive: Duration)
set the keep-alive setting
sourcepub fn set_enqueue_scheduled(&mut self, enqueue_scheduled: Duration)
pub fn set_enqueue_scheduled(&mut self, enqueue_scheduled: Duration)
get the enqueued setting
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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