Struct rust_box::task_exec_queue::LocalBuilder
source · [−]pub struct LocalBuilder { /* private fields */ }Implementations
sourceimpl LocalBuilder
impl LocalBuilder
pub fn workers(self, workers: usize) -> LocalBuilder
pub fn queue_max(self, max: usize) -> LocalBuilder
pub fn with_channel<Tx, Rx, D>(
self,
tx: Tx,
rx: Rx
) -> ChannelLocalBuilder<Tx, Rx, D>where
Tx: 'static + Clone + Sink<(D, Box<dyn Future<Output = ()> + Unpin + 'static, Global>)> + Unpin + Sync,
Rx: Stream<Item = (D, Box<dyn Future<Output = ()> + Unpin + 'static, Global>)> + Unpin,
pub fn build(
self
) -> (LocalTaskExecQueue<SyncSender, (), ()>, impl Future<Output = ()>)
Trait Implementations
sourceimpl Default for LocalBuilder
impl Default for LocalBuilder
sourcefn default() -> LocalBuilder
fn default() -> LocalBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for LocalBuilder
impl Send for LocalBuilder
impl Sync for LocalBuilder
impl Unpin for LocalBuilder
impl UnwindSafe for LocalBuilder
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