pub struct ExecutorAddressOperations<'a, E: AsyncExecutor> { /* private fields */ }
Implementations§
Source§impl<'a, E: AsyncExecutor> ExecutorAddressOperations<'a, E>
impl<'a, E: AsyncExecutor> ExecutorAddressOperations<'a, E>
pub async fn receive_packet( &self, handle: &ThreadPriorityHandle, ) -> Option<Packet<E::InputPacket>>
pub fn declare_addresses( &self, addresses: Vec<ExecutorAddress>, priority: usize, )
pub async fn pool_alloc_await( &self, new_size: usize, handle: &ThreadPriorityHandle, force: bool, ) -> Arc<PoolObject<PacketsPool<E::OutputPacket>>>
pub fn packet_send( &self, address: ExecutorAddress, packet: Packet<E::OutputPacket>, handle: &ThreadPriorityHandle, )
pub fn get_context(&self) -> &ExecutionContext
pub fn make_spawner(&self) -> ExecutorsSpawner<'a>
pub fn get_address(&self) -> WeakExecutorAddress
Trait Implementations§
Source§impl<'a, E: AsyncExecutor> Drop for ExecutorAddressOperations<'a, E>
impl<'a, E: AsyncExecutor> Drop for ExecutorAddressOperations<'a, E>
Auto Trait Implementations§
impl<'a, E> !Freeze for ExecutorAddressOperations<'a, E>
impl<'a, E> !RefUnwindSafe for ExecutorAddressOperations<'a, E>
impl<'a, E> Send for ExecutorAddressOperations<'a, E>
impl<'a, E> Sync for ExecutorAddressOperations<'a, E>
impl<'a, E> Unpin for ExecutorAddressOperations<'a, E>
impl<'a, E> !UnwindSafe for ExecutorAddressOperations<'a, E>
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