pub struct RunParams<T> {
pub manager: Manager,
pub shutdown_recv: Receiver<()>,
pub max_task_count: usize,
pub dispatcher: T,
}
Expand description
Parameters for manage
function
Fields§
§manager: Manager
Manager
shutdown_recv: Receiver<()>
Shutdown channel
max_task_count: usize
Maximum number of new tasks to add for execution.
If queue has more tasks than this number, it will try to complete these tasks first before trying to fetch again. Once it exceeds poll_time, it stops fetching and goes for next iteration.
dispatcher: T
Dispatcher for incoming messages
Auto Trait Implementations§
impl<T> Freeze for RunParams<T>where
T: Freeze,
impl<T> !RefUnwindSafe for RunParams<T>
impl<T> Send for RunParams<T>where
T: Send,
impl<T> Sync for RunParams<T>where
T: Sync,
impl<T> Unpin for RunParams<T>where
T: Unpin,
impl<T> !UnwindSafe for RunParams<T>
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