pub struct ExecutionContext { /* private fields */ }
Implementations§
Source§impl ExecutionContext
impl ExecutionContext
pub fn new() -> Arc<Self>
pub fn register_executor_type<E: AsyncExecutor>( &self, executors_max_count: usize, pool_alloc_mode: PoolAllocMode, pool_init_data: <E::OutputPacket as PoolObjectTrait>::InitData, )
pub fn get_allocated_executors(&self, executor_type_id: &TypeId) -> u64
pub fn register_executors_batch( self: &Arc<Self>, executors: Vec<ExecutorAddress>, priority: usize, )
pub fn send_packet<T: PacketTrait>( &self, addr: ExecutorAddress, packet: Packet<T>, )
pub fn start(&self)
pub fn wait_for_completion<E: AsyncExecutor>(&self, _handle: ExecutorsHandle<E>)
pub fn get_pending_executors_count<E: AsyncExecutor>( &self, _handle: ExecutorsHandle<E>, ) -> u64
pub fn join_all(&self)
Auto Trait Implementations§
impl !Freeze for ExecutionContext
impl !RefUnwindSafe for ExecutionContext
impl Send for ExecutionContext
impl Sync for ExecutionContext
impl Unpin for ExecutionContext
impl !UnwindSafe for ExecutionContext
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more