Struct task_exec_queue::TaskExecQueue
source · pub struct TaskExecQueue<Tx = Sender<((), TaskType)>, G = (), D = ()> { /* private fields */ }
Implementations§
source§impl<Tx, G, D> TaskExecQueue<Tx, G, D>where
Tx: Clone + Sink<(D, TaskType)> + Unpin + Send + Sync + 'static,
G: Hash + Eq + Clone + Debug + Send + Sync + 'static,
impl<Tx, G, D> TaskExecQueue<Tx, G, D>where Tx: Clone + Sink<(D, TaskType)> + Unpin + Send + Sync + 'static, G: Hash + Eq + Clone + Debug + Send + Sync + 'static,
pub fn try_spawn_with<T>(&self, msg: T, name: D) -> TrySpawner<'_, T, Tx, G, D> ⓘwhere D: Clone, T: Future + Send + 'static, T::Output: Send + 'static,
pub fn spawn_with<T>(&self, msg: T, name: D) -> Spawner<'_, T, Tx, G, D> ⓘwhere D: Clone, T: Future + Send + 'static, T::Output: Send + 'static,
pub fn flush(&self) -> Flush<'_, Tx, G, D>
pub fn close(&self) -> Close<'_, Tx, G, 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 pending_wakers_count(&self) -> usize
pub fn waiting_wakers_count(&self) -> usize
pub fn rate(&self) -> f64
pub fn is_full(&self) -> bool
pub fn is_active(&self) -> bool
pub fn is_closed(&self) -> bool
pub fn is_flushing(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<Tx = Sender<((), Box<dyn Future<Output = ()> + Send + Unpin>)>, G = (), D = ()> !RefUnwindSafe for TaskExecQueue<Tx, G, D>
impl<Tx, G, D> Send for TaskExecQueue<Tx, G, D>where D: Send, G: Send + Sync, Tx: Send,
impl<Tx, G, D> Sync for TaskExecQueue<Tx, G, D>where D: Sync, G: Send + Sync, Tx: Sync,
impl<Tx, G, D> Unpin for TaskExecQueue<Tx, G, D>where D: Unpin, Tx: Unpin,
impl<Tx = Sender<((), Box<dyn Future<Output = ()> + Send + Unpin>)>, G = (), D = ()> !UnwindSafe for TaskExecQueue<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