pub struct ProcessAsyncContext<'a> { /* private fields */ }Available on crate feature
process-node only.Expand description
Async context for running a future within a VPP process node.
This struct holds the state needed to poll a async future from the VPP process node loop, including a timer wheel for async operations.
Implementations§
Source§impl<'a> ProcessAsyncContext<'a>
impl<'a> ProcessAsyncContext<'a>
Sourcepub fn new<N>(
vm: &'a mut MainRef,
node: &NodeRuntimeRef<N>,
future: LocalFutureObj<'a, ()>,
) -> Self
pub fn new<N>( vm: &'a mut MainRef, node: &NodeRuntimeRef<N>, future: LocalFutureObj<'a, ()>, ) -> Self
Create a new async context for the given future.
Trait Implementations§
impl<'__pin, 'a> Unpin for ProcessAsyncContext<'a>where
PinnedFieldsOf<__Origin<'__pin, 'a>>: Unpin,
Auto Trait Implementations§
impl<'a> Freeze for ProcessAsyncContext<'a>
impl<'a> !RefUnwindSafe for ProcessAsyncContext<'a>
impl<'a> !Send for ProcessAsyncContext<'a>
impl<'a> !Sync for ProcessAsyncContext<'a>
impl<'a> UnsafeUnpin for ProcessAsyncContext<'a>
impl<'a> !UnwindSafe for ProcessAsyncContext<'a>
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