Struct solana_sdk::commitment_config::CommitmentConfig
source · pub struct CommitmentConfig {
pub commitment: CommitmentLevel,
}
Fields§
§commitment: CommitmentLevel
Implementations§
source§impl CommitmentConfig
impl CommitmentConfig
pub fn recent() -> Self
👎Deprecated since 1.5.5: Please use CommitmentConfig::processed() instead
pub fn max() -> Self
👎Deprecated since 1.5.5: Please use CommitmentConfig::finalized() instead
pub fn root() -> Self
👎Deprecated since 1.5.5: Please use CommitmentConfig::finalized() instead
pub fn single() -> Self
👎Deprecated since 1.5.5: Please use CommitmentConfig::confirmed() instead
pub fn single_gossip() -> Self
👎Deprecated since 1.5.5: Please use CommitmentConfig::confirmed() instead
pub fn finalized() -> Self
pub fn confirmed() -> Self
pub fn processed() -> Self
pub fn ok(self) -> Option<Self>
pub fn is_finalized(&self) -> bool
pub fn is_confirmed(&self) -> bool
pub fn is_processed(&self) -> bool
pub fn is_at_least_confirmed(&self) -> bool
pub fn use_deprecated_commitment(commitment: CommitmentConfig) -> Self
Trait Implementations§
source§impl Clone for CommitmentConfig
impl Clone for CommitmentConfig
source§fn clone(&self) -> CommitmentConfig
fn clone(&self) -> CommitmentConfig
Returns a copy 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 CommitmentConfig
impl Debug for CommitmentConfig
source§impl Default for CommitmentConfig
impl Default for CommitmentConfig
source§fn default() -> CommitmentConfig
fn default() -> CommitmentConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CommitmentConfig
impl<'de> Deserialize<'de> for CommitmentConfig
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 FromStr for CommitmentConfig
impl FromStr for CommitmentConfig
source§impl Hash for CommitmentConfig
impl Hash for CommitmentConfig
source§impl PartialEq<CommitmentConfig> for CommitmentConfig
impl PartialEq<CommitmentConfig> for CommitmentConfig
source§fn eq(&self, other: &CommitmentConfig) -> bool
fn eq(&self, other: &CommitmentConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.