Enum xrpl_hooks::api::Result [−][src]
pub enum Result<T> {
Ok(T),
Err(i64),
}Expand description
Variants
Contains the success value
Err(i64)Contains the error value
Tuple Fields of Err
0: i64Implementations
Returns the contained Ok value, consuming the self value.
Because this function may rollback, its use is generally discouraged.
Instead, prefer to use pattern matching and handle the Err
case explicitly.
Rollbacks
Rollbacks if the value is an Err, with a “error” and error code provided by the
Err’s value.
Returns the contained Ok value, consuming the self value,
without checking that the value is not an Err.
Safety
Calling this method on an Err is undefined behavior.