Struct ink_env::ReturnFlags
source · pub struct ReturnFlags { /* private fields */ }
Expand description
The flags to indicate further information about the end of a contract execution.
Implementations§
source§impl ReturnFlags
impl ReturnFlags
sourcepub fn new_with_reverted(has_reverted: bool) -> Self
pub fn new_with_reverted(has_reverted: bool) -> Self
Initialize ReturnFlags
with the reverted flag.
sourcepub fn set_reverted(self, has_reverted: bool) -> Self
pub fn set_reverted(self, has_reverted: bool) -> Self
Sets the bit to indicate that the execution is going to be reverted.
Trait Implementations§
source§impl Default for ReturnFlags
impl Default for ReturnFlags
source§fn default() -> ReturnFlags
fn default() -> ReturnFlags
Returns the “default value” for a type. Read more