pub struct RuntimeIsErrorOperation<'c> { /* private fields */ }
Expand description
A runtime.is_error
operation. Returns true if token, value or group is in error state.
The async.runtime.is_error
operation returns true if the token, value or
group (any of the async runtime values) is in the error state. It is the
caller responsibility to check error state after the call to await
or
resuming after await_and_resume
.
Implementations§
source§impl<'c> RuntimeIsErrorOperation<'c>
impl<'c> RuntimeIsErrorOperation<'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>
) -> RuntimeIsErrorOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> RuntimeIsErrorOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn is_error(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn operand(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<RuntimeIsErrorOperation<'c>> for Operation<'c>
impl<'c> From<RuntimeIsErrorOperation<'c>> for Operation<'c>
source§fn from(operation: RuntimeIsErrorOperation<'c>) -> Self
fn from(operation: RuntimeIsErrorOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for RuntimeIsErrorOperation<'c>
impl<'c> !Send for RuntimeIsErrorOperation<'c>
impl<'c> !Sync for RuntimeIsErrorOperation<'c>
impl<'c> Unpin for RuntimeIsErrorOperation<'c>
impl<'c> UnwindSafe for RuntimeIsErrorOperation<'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