pub enum Commitment {
Processed,
Confirmed,
Finalized,
}
Expand description
The commitment level of a Solana transaction.
Note that deprecated commitments are converted into supported commitments.
recent
is parsed as processed
single
and singleGossip
are parsed as confirmed
root
and max
are parsed as finalized
,
Variants§
Processed
A transaction has been validated and recorded in the blockchain by a single node
Confirmed
A transaction has been validated and recorded by a majority of nodes in the Solana cluster.
Finalized
A has been included in a block that has been committed to the blockchain by the Solana cluster and is now irreversible.
Implementations§
Trait Implementations§
Source§impl Clone for Commitment
impl Clone for Commitment
Source§fn clone(&self) -> Commitment
fn clone(&self) -> Commitment
Returns a duplicate 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 Commitment
impl Debug for Commitment
Source§impl Default for Commitment
impl Default for Commitment
Source§fn default() -> Commitment
fn default() -> Commitment
Returns the “default value” for a type. Read more
Source§impl Hash for Commitment
impl Hash for Commitment
Source§impl Ord for Commitment
impl Ord for Commitment
Source§fn cmp(&self, other: &Commitment) -> Ordering
fn cmp(&self, other: &Commitment) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Commitment
impl PartialEq for Commitment
Source§impl PartialOrd for Commitment
impl PartialOrd for Commitment
Source§impl TryFrom<&str> for Commitment
impl TryFrom<&str> for Commitment
impl Copy for Commitment
impl Eq for Commitment
impl StructuralPartialEq for Commitment
Auto Trait Implementations§
impl Freeze for Commitment
impl RefUnwindSafe for Commitment
impl Send for Commitment
impl Sync for Commitment
impl Unpin for Commitment
impl UnwindSafe for Commitment
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