Struct task_executor::Executor
source · [−]pub struct Executor<Item> { /* private fields */ }Implementations
sourceimpl<Item> Executor<Item>where
Item: Future + Send + 'static,
impl<Item> Executor<Item>where
Item: Future + Send + 'static,
pub fn mailbox(&self) -> Mailbox<Sender<Item>, Item>
pub fn close(&mut self) -> Close<'_, Sender<Item>, Item>
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
Trait Implementations
Auto Trait Implementations
impl<Item> !RefUnwindSafe for Executor<Item>
impl<Item> Send for Executor<Item>where
Item: Send,
impl<Item> Sync for Executor<Item>where
Item: Send,
impl<Item> Unpin for Executor<Item>
impl<Item> !UnwindSafe for Executor<Item>
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