Struct rust_box::task_exec_queue::Builder
source · [−]pub struct Builder { /* private fields */ }Implementations
sourceimpl Builder
impl Builder
pub fn workers(self, workers: usize) -> Builder
pub fn queue_max(self, max: usize) -> Builder
pub fn group(self) -> GroupBuilder
pub fn with_channel<Tx, Rx, D>(self, tx: Tx, rx: Rx) -> ChannelBuilder<Tx, Rx, D>where
Tx: 'static + Clone + Sink<(D, Box<dyn Future<Output = ()> + Unpin + Send + 'static, Global>)> + Unpin + Send + Sync,
Rx: Stream<Item = (D, Box<dyn Future<Output = ()> + Unpin + Send + 'static, Global>)> + Unpin,
pub fn build(
self
) -> (TaskExecQueue<Sender<((), Box<dyn Future<Output = ()> + Unpin + Send + 'static, Global>)>, (), ()>, 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more