Struct task_executor::Executor
source · [−]pub struct Executor { /* private fields */ }Implementations
sourceimpl Executor
impl Executor
pub fn try_spawn<T>(&self, task: T) -> Result<(), Error<T>>where
T: Future + Send + 'static,
T::Output: Send + 'static,
pub fn spawn<T>(&mut self, msg: T) -> Spawner<'_, T>ⓘNotable traits for Spawner<'_, Item>impl<Item> Future for Spawner<'_, Item>where
Item: Future + Send + 'static,
Item::Output: Send + 'static, type Output = Result<(), Error<Item>>;where
T: Future + Send + 'static,
T::Output: Send + 'static,
Item: Future + Send + 'static,
Item::Output: Send + 'static, type Output = Result<(), Error<Item>>;
pub fn flush(&self) -> Flush
pub fn close(&self) -> Close
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 !RefUnwindSafe for Executor
impl Send for Executor
impl Sync for Executor
impl Unpin for Executor
impl !UnwindSafe for Executor
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