pub enum CommitmentLevel {
Processed,
Confirmed,
Finalized,
}Expand description
Commitment levels in Solana, representing finality guarantees of transactions and memory queries.
Variants§
Processed
The transaction is processed by a leader, but may be dropped.
Confirmed
The transaction has been included in a block that has reached 1 confirmation.
Finalized
The transaction is finalized and cannot be rolled back.
Trait Implementations§
Source§impl CandidType for CommitmentLevel
impl CandidType for CommitmentLevel
Source§impl Clone for CommitmentLevel
impl Clone for CommitmentLevel
Source§fn clone(&self) -> CommitmentLevel
fn clone(&self) -> CommitmentLevel
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 CommitmentLevel
impl Debug for CommitmentLevel
Source§impl Default for CommitmentLevel
impl Default for CommitmentLevel
Source§fn default() -> CommitmentLevel
fn default() -> CommitmentLevel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommitmentLevel
impl<'de> Deserialize<'de> for CommitmentLevel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CommitmentLevel> for CommitmentConfig
impl From<CommitmentLevel> for CommitmentConfig
Source§fn from(commitment_level: CommitmentLevel) -> Self
fn from(commitment_level: CommitmentLevel) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CommitmentLevel
impl PartialEq for CommitmentLevel
Source§impl Serialize for CommitmentLevel
impl Serialize for CommitmentLevel
impl Eq for CommitmentLevel
impl StructuralPartialEq for CommitmentLevel
Auto Trait Implementations§
impl Freeze for CommitmentLevel
impl RefUnwindSafe for CommitmentLevel
impl Send for CommitmentLevel
impl Sync for CommitmentLevel
impl Unpin for CommitmentLevel
impl UnwindSafe for CommitmentLevel
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