pub struct TxError {
pub error: TransactionError,
pub error_code: Option<u32>,
pub instruction_index: Option<u8>,
pub logs: Vec<String>,
pub signature: Signature,
pub inner_instructions: InnerInstructionsList,
pub return_data: TransactionReturnData,
pub fee: u64,
}Expand description
Error type for TxOutcome::into_result()
Fields§
§error: TransactionError§error_code: Option<u32>§instruction_index: Option<u8>§logs: Vec<String>§signature: Signature§inner_instructions: InnerInstructionsList§return_data: TransactionReturnData§fee: u64Trait Implementations§
Source§impl Error for TxError
impl Error for TxError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for TxError
impl RefUnwindSafe for TxError
impl Send for TxError
impl Sync for TxError
impl Unpin for TxError
impl UnsafeUnpin for TxError
impl UnwindSafe for TxError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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