pub struct Executor<Tx = Sender<((), TaskType)>, G = (), D = ()> { /* private fields */ }
Implementations§
Source§impl<Tx, G, D> Executor<Tx, G, D>
impl<Tx, G, D> Executor<Tx, G, D>
pub fn spawn_with<T>(&mut self, msg: T, name: D) -> Spawner<'_, T, Tx, G, D> ⓘ
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
Trait Implementations§
Auto Trait Implementations§
impl<Tx, G, D> Freeze for Executor<Tx, G, D>where
Tx: Freeze,
impl<Tx = Sender<((), Box<dyn Future<Output = ()> + Unpin + Send>)>, G = (), D = ()> !RefUnwindSafe for Executor<Tx, G, D>
impl<Tx, G, D> Send for Executor<Tx, G, D>
impl<Tx, G, D> Sync for Executor<Tx, G, D>
impl<Tx, G, D> Unpin for Executor<Tx, G, D>
impl<Tx = Sender<((), Box<dyn Future<Output = ()> + Unpin + Send>)>, G = (), D = ()> !UnwindSafe for Executor<Tx, G, D>
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