Struct task_executor::LocalExecutor 
source · [−]pub struct LocalExecutor<Tx = Sender<((), LocalTaskType)>, G = (), D = ()> { /* private fields */ }Implementations
sourceimpl<Tx, G, D> LocalExecutor<Tx, G, D>where
    Tx: Clone + Sink<(D, LocalTaskType)> + Unpin + Sync + 'static,
    G: Hash + Eq + Clone + Debug + Sync + 'static,
 
impl<Tx, G, D> LocalExecutor<Tx, G, D>where
    Tx: Clone + Sink<(D, LocalTaskType)> + Unpin + Sync + 'static,
    G: Hash + Eq + Clone + Debug + Sync + 'static,
pub fn spawn_with<T>(&mut self, msg: T, name: D) -> LocalSpawner<'_, T, Tx, G, D>ⓘNotable traits for LocalSpawner<'_, Item, Tx, G, D>impl<Item, Tx, G, D> Future for LocalSpawner<'_, Item, Tx, G, D>where
    Item: Future + 'static,
    Item::Output: 'static,
    Tx: Clone + Unpin + Sink<(D, LocalTaskType)> + Sync + 'static,
    G: Hash + Eq + Clone + Debug + Sync + 'static,    type Output = Result<(), Error<Item>>;where
    D: Clone,
    T: Future + 'static,
    T::Output: 'static,
Item: Future + 'static,
Item::Output: 'static,
Tx: Clone + Unpin + Sink<(D, LocalTaskType)> + Sync + 'static,
G: Hash + Eq + Clone + Debug + Sync + 'static, type Output = Result<(), Error<Item>>;
pub fn flush(&self) -> Flush<Tx, D>
pub fn close(&self) -> Close<Tx, D>
pub fn workers(&self) -> usize
pub fn active_count(&self) -> isize
pub fn waiting_count(&self) -> isize
pub fn completed_count(&self) -> isize
pub fn rate(&self) -> f64
pub fn is_full(&self) -> bool
pub fn is_closed(&self) -> bool
pub fn is_flushing(&self) -> bool
sourceimpl<Tx, G> LocalExecutor<Tx, G, ()>where
    Tx: Clone + Sink<((), LocalTaskType)> + Unpin + Sync + 'static,
    G: Hash + Eq + Clone + Debug + Sync + 'static,
 
impl<Tx, G> LocalExecutor<Tx, G, ()>where
    Tx: Clone + Sink<((), LocalTaskType)> + Unpin + Sync + 'static,
    G: Hash + Eq + Clone + Debug + Sync + 'static,
pub fn spawn<T>(&mut self, msg: T) -> LocalSpawner<'_, T, Tx, G, ()>ⓘNotable traits for LocalSpawner<'_, Item, Tx, G, D>impl<Item, Tx, G, D> Future for LocalSpawner<'_, Item, Tx, G, D>where
    Item: Future + 'static,
    Item::Output: 'static,
    Tx: Clone + Unpin + Sink<(D, LocalTaskType)> + Sync + 'static,
    G: Hash + Eq + Clone + Debug + Sync + 'static,    type Output = Result<(), Error<Item>>;where
    T: Future + 'static,
    T::Output: 'static,
Item: Future + 'static,
Item::Output: 'static,
Tx: Clone + Unpin + Sink<(D, LocalTaskType)> + Sync + 'static,
G: Hash + Eq + Clone + Debug + Sync + 'static, type Output = Result<(), Error<Item>>;
Trait Implementations
Auto Trait Implementations
impl<Tx = Sender<((), Box<dyn Future<Output = ()> + Unpin + 'static, Global>)>, G = (), D = ()> !RefUnwindSafe for LocalExecutor<Tx, G, D>
impl<Tx = Sender<((), Box<dyn Future<Output = ()> + Unpin + 'static, Global>)>, G = (), D = ()> !Send for LocalExecutor<Tx, G, D>
impl<Tx = Sender<((), Box<dyn Future<Output = ()> + Unpin + 'static, Global>)>, G = (), D = ()> !Sync for LocalExecutor<Tx, G, D>
impl<Tx, G, D> Unpin for LocalExecutor<Tx, G, D>where
    D: Unpin,
    Tx: Unpin,
impl<Tx = Sender<((), Box<dyn Future<Output = ()> + Unpin + 'static, Global>)>, G = (), D = ()> !UnwindSafe for LocalExecutor<Tx, G, D>
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