Struct rust_box::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: 'static + Future + Send,
<T as Future>::Output: 'static,
<T as Future>::Output: Send,
pub fn spawn<T>(&mut self, msg: T) -> Spawner<'_, T>ⓘNotable traits for Spawner<'_, Item>impl<Item> Future for Spawner<'_, Item>where
Item: 'static + Future + Send,
<Item as Future>::Output: 'static,
<Item as Future>::Output: Send, type Output = Result<(), Error<Item>>;where
T: 'static + Future + Send,
<T as Future>::Output: 'static,
<T as Future>::Output: Send,
Item: 'static + Future + Send,
<Item as Future>::Output: 'static,
<Item as Future>::Output: Send, 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 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