pub struct Config<R> { /* private fields */ }Implementations§
Source§impl<R> Config<R>
impl<R> Config<R>
pub fn new<S>( host: S, workers: u64, with_redis: R, closed: Arc<AtomicBool>, ) -> Config<R>
pub fn reg_job_service( &mut self, job_service: Box<dyn JobService>, ) -> Result<()>
pub fn set_tick_sleep(&mut self, tick_sleep: u64)
pub fn set_stop_timeout(&mut self, stop_timeout: u64)
pub fn set_watch_dead_thread(&mut self, watch_dead_thread: u64)
pub fn set_fetch_timeout(&mut self, fetch_timeout: u64)
Auto Trait Implementations§
impl<R> Freeze for Config<R>where
R: Freeze,
impl<R> !RefUnwindSafe for Config<R>
impl<R> Send for Config<R>where
R: Send,
impl<R> !Sync for Config<R>
impl<R> Unpin for Config<R>where
R: Unpin,
impl<R> !UnwindSafe for Config<R>
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