Enum cosmwasm_std::ReplyOn [−][src]
pub enum ReplyOn { Always, Error, Success, Never, }
Expand description
Use this to define when the contract gets a response callback. If you only need it for errors or success you can select just those in order to save gas.
Variants
Always perform a callback after SubMsg is processed
Only callback if SubMsg returned an error, no callback on success case
Only callback if SubMsg was successful, no callback on error case
Never make a callback - this is like the original CosmosMsg semantics
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ReplyOn
impl UnwindSafe for ReplyOn
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self