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