Struct task_exec_queue::Builder
source · pub struct Builder { /* private fields */ }
Implementations§
source§impl Builder
impl Builder
pub fn workers(self, workers: usize) -> Self
pub fn queue_max(self, max: usize) -> Self
pub fn group(self) -> GroupBuilder
pub fn with_channel<Tx, Rx, D>( self, tx: Tx, rx: Rx ) -> ChannelBuilder<Tx, Rx, D>where Tx: Clone + Sink<(D, TaskType)> + Unpin + Send + Sync + 'static, Rx: Stream<Item = (D, TaskType)> + Unpin,
pub fn build(self) -> (TaskExecQueue, impl Future<Output = ()>)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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