pub struct RuntimeAwaitAndResumeOperation<'c> { /* private fields */ }
Expand description
A runtime.await_and_resume
operation. Awaits the async operand and resumes the coroutine.
The async.runtime.await_and_resume
operation awaits for the operand to
become available or error and resumes the coroutine on a thread managed by
the runtime.
Implementations§
source§impl<'c> RuntimeAwaitAndResumeOperation<'c>
impl<'c> RuntimeAwaitAndResumeOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> RuntimeAwaitAndResumeOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> RuntimeAwaitAndResumeOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn operand(&self) -> Result<Value<'c, '_>, Error>
pub fn handle(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<RuntimeAwaitAndResumeOperation<'c>> for Operation<'c>
impl<'c> From<RuntimeAwaitAndResumeOperation<'c>> for Operation<'c>
source§fn from(operation: RuntimeAwaitAndResumeOperation<'c>) -> Self
fn from(operation: RuntimeAwaitAndResumeOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for RuntimeAwaitAndResumeOperation<'c>
impl<'c> !Send for RuntimeAwaitAndResumeOperation<'c>
impl<'c> !Sync for RuntimeAwaitAndResumeOperation<'c>
impl<'c> Unpin for RuntimeAwaitAndResumeOperation<'c>
impl<'c> UnwindSafe for RuntimeAwaitAndResumeOperation<'c>
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