Struct solana_sdk::commitment_config::CommitmentConfig
source · [−]pub struct CommitmentConfig {
pub commitment: CommitmentLevel,
}
Fields
commitment: CommitmentLevel
Implementations
sourceimpl 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
sourceimpl Clone for CommitmentConfig
impl Clone for CommitmentConfig
sourcefn clone(&self) -> CommitmentConfig
fn clone(&self) -> CommitmentConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CommitmentConfig
impl Debug for CommitmentConfig
sourceimpl Default for CommitmentConfig
impl Default for CommitmentConfig
sourcefn default() -> CommitmentConfig
fn default() -> CommitmentConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CommitmentConfig
impl<'de> Deserialize<'de> for CommitmentConfig
sourcefn 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
sourceimpl FromStr for CommitmentConfig
impl FromStr for CommitmentConfig
sourceimpl Hash for CommitmentConfig
impl Hash for CommitmentConfig
sourceimpl PartialEq<CommitmentConfig> for CommitmentConfig
impl PartialEq<CommitmentConfig> for CommitmentConfig
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &CommitmentConfig) -> bool
fn ne(&self, other: &CommitmentConfig) -> bool
This method tests for !=
.
sourceimpl Serialize for CommitmentConfig
impl Serialize for CommitmentConfig
impl Copy for CommitmentConfig
impl Eq for CommitmentConfig
impl StructuralEq for CommitmentConfig
impl StructuralPartialEq for CommitmentConfig
Auto Trait Implementations
impl RefUnwindSafe for CommitmentConfig
impl Send for CommitmentConfig
impl Sync for CommitmentConfig
impl Unpin for CommitmentConfig
impl UnwindSafe for CommitmentConfig
Blanket Implementations
sourceimpl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
sourceimpl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
sourceimpl<T> AbiExample for T
impl<T> AbiExample for T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more