#[non_exhaustive]pub enum WaitForTransaction {
IndexedOnNode,
Finalized,
}Expand description
Determines what to wait for after executing a transaction.
Users should almost always use WaitForTransaction::Finalized (the
default), as clients may interact with the indexer and not the fullnode
directly. Using WaitForTransaction::IndexedOnNode only guarantees the
transaction is indexed on the fullnode (meaning you can submit transactions
that reference objects created by this transaction), but subsequent queries
using the transaction ID can still fail until the transaction is indexed on
the indexer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
IndexedOnNode
Indicates that the transaction effects will be usable in subsequent transactions (you can reference objects created by this transaction), and that the transaction itself is indexed on the fullnode.
Warning: This does not guarantee the transaction is indexed on the
indexer. Since the client may query the indexer, subsequent
queries with this transaction ID may still fail. Prefer
WaitForTransaction::Finalized unless you have a specific reason to
use this.
Finalized
Indicates that the transaction has been included in a checkpoint, and all queries may include it.
Trait Implementations§
Source§impl Default for WaitForTransaction
impl Default for WaitForTransaction
Source§fn default() -> WaitForTransaction
fn default() -> WaitForTransaction
Auto Trait Implementations§
impl Freeze for WaitForTransaction
impl RefUnwindSafe for WaitForTransaction
impl Send for WaitForTransaction
impl Sync for WaitForTransaction
impl Unpin for WaitForTransaction
impl UnsafeUnpin for WaitForTransaction
impl UnwindSafe for WaitForTransaction
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Clear for Twhere
T: InitializableFromZeroed + ?Sized,
impl<T> Clear for Twhere
T: InitializableFromZeroed + ?Sized,
Source§impl<T> InitializableFromZeroed for Twhere
T: Default,
impl<T> InitializableFromZeroed for Twhere
T: Default,
Source§unsafe fn initialize(place: *mut T)
unsafe fn initialize(place: *mut T)
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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