pub struct AwaitOperation<'c> { /* private fields */ }
Expand description
An await
operation. Waits for the argument to become ready.
The async.await
operation waits until the argument becomes ready, and for
the async.value
arguments it unwraps the underlying value
Example:
%0 = ... : !async.token
async.await %0 : !async.token
%1 = ... : !async.value<f32>
%2 = async.await %1 : !async.value<f32>
Implementations§
source§impl<'c> AwaitOperation<'c>
impl<'c> AwaitOperation<'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>
) -> AwaitOperationBuilder<'c, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> AwaitOperationBuilder<'c, Unset>
Creates a builder.
pub fn result(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn operand(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<AwaitOperation<'c>> for Operation<'c>
impl<'c> From<AwaitOperation<'c>> for Operation<'c>
source§fn from(operation: AwaitOperation<'c>) -> Self
fn from(operation: AwaitOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for AwaitOperation<'c>
impl<'c> !Send for AwaitOperation<'c>
impl<'c> !Sync for AwaitOperation<'c>
impl<'c> Unpin for AwaitOperation<'c>
impl<'c> UnwindSafe for AwaitOperation<'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