pub enum OperationCompletionStatus {
Completed,
InterruptedBeforeOutOfGas,
}Expand description
Standard way of signalling that an operation was interrupted early, before running out of gas. An endpoint that performs a longer operation can check from time to time if it is running low on gas and can decide to save its state and exit, so that it can continue the same operation later.
Variants§
Implementations§
source§impl OperationCompletionStatus
impl OperationCompletionStatus
pub fn output_bytes(&self) -> &'static [u8]
Trait Implementations§
source§impl<FA> EndpointResult<FA> for OperationCompletionStatus
impl<FA> EndpointResult<FA> for OperationCompletionStatus
source§impl TypeAbi for OperationCompletionStatus
impl TypeAbi for OperationCompletionStatus
fn type_name() -> String
source§fn provide_type_descriptions<TDC: TypeDescriptionContainer>(
accumulator: &mut TDC
)
fn provide_type_descriptions<TDC: TypeDescriptionContainer>( accumulator: &mut TDC )
A type can provide more than its own description.
For instance, a struct can also provide the descriptions of the type of its fields.
TypeAbi doesn’t care for the exact accumulator type,
which is abstracted by the TypeDescriptionContainer trait.
Auto Trait Implementations§
impl RefUnwindSafe for OperationCompletionStatus
impl Send for OperationCompletionStatus
impl Sync for OperationCompletionStatus
impl Unpin for OperationCompletionStatus
impl UnwindSafe for OperationCompletionStatus
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