[−][src]Enum ethcontract::transaction::TransactionResult
Represents the result of a sent transaction that can either be a transaction
hash, in the case the transaction was not confirmed, or a full transaction
receipt if the TransactionBuilder
was configured to wait for confirmation
blocks.
Note that the result will always be a TransactionResult::Hash
if
Confirm::Skip
was used and TransactionResult::Receipt
if
Confirm::Blocks
was used.
Variants
Hash(H256)
A transaction hash, this variant happens if and only if confirmation was skipped.
Receipt(TransactionReceipt)
A transaction receipt, this variant happens if and only if the transaction was configured to wait for confirmations.
Methods
impl TransactionResult
[src]
pub fn is_hash(&self) -> bool
[src]
Returns true if the TransactionResult
is a Hash
variant, i.e. it is
only a hash and does not contain the transaction receipt.
pub fn hash(&self) -> H256
[src]
Get the transaction hash.
pub fn is_receipt(&self) -> bool
[src]
Returns true if the TransactionResult
is a Receipt
variant, i.e. the
transaction was confirmed and the full transaction receipt is available.
pub fn as_receipt(&self) -> Option<&TransactionReceipt>
[src]
Extract a TransactionReceipt
from the result. This will return None
if the result is only a hash and the transaction receipt is not
available.
Trait Implementations
impl Clone for TransactionResult
[src]
fn clone(&self) -> TransactionResult
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TransactionResult
[src]
Auto Trait Implementations
impl RefUnwindSafe for TransactionResult
impl Send for TransactionResult
impl Sync for TransactionResult
impl Unpin for TransactionResult
impl UnwindSafe for TransactionResult
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,