Enum abstract_std::ibc::CallbackResult
source · pub enum CallbackResult {
Query {
query: QueryRequest<Empty>,
result: Result<Vec<Binary>, ErrorResponse>,
},
Execute {
initiator_msg: Binary,
result: Result<ExecutionResponse, String>,
},
FatalError(String),
}
Variants§
Query
Execute
FatalError(String)
An error occured that could not be recovered from. The only
known way that this can occur is message handling running out
of gas, in which case the error will be codespace: sdk, code: 11
.
This error is not named becuase it could also occur due to a panic or unhandled error during message processing. We don’t expect this to happen and have carefully written the code to avoid it.
Implementations§
source§impl CallbackResult
impl CallbackResult
pub fn from_query( callback: Callback, query: QueryRequest<Empty> ) -> Result<Self, StdError>
pub fn from_execute( callback: Callback, initiator_msg: Binary ) -> Result<Self, StdError>
Trait Implementations§
source§impl Clone for CallbackResult
impl Clone for CallbackResult
source§fn clone(&self) -> CallbackResult
fn clone(&self) -> CallbackResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CallbackResult
impl Debug for CallbackResult
source§impl<'de> Deserialize<'de> for CallbackResult
impl<'de> Deserialize<'de> for CallbackResult
source§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
source§impl JsonSchema for CallbackResult
impl JsonSchema for CallbackResult
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for CallbackResult
impl PartialEq for CallbackResult
source§fn eq(&self, other: &CallbackResult) -> bool
fn eq(&self, other: &CallbackResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallbackResult
impl Serialize for CallbackResult
impl StructuralPartialEq for CallbackResult
Auto Trait Implementations§
impl Freeze for CallbackResult
impl RefUnwindSafe for CallbackResult
impl Send for CallbackResult
impl Sync for CallbackResult
impl Unpin for CallbackResult
impl UnwindSafe for CallbackResult
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more