Struct solana_sdk::commitment_config::CommitmentConfig [−][src]
pub struct CommitmentConfig { pub commitment: CommitmentLevel, }
Fields
commitment: CommitmentLevel
Implementations
impl CommitmentConfig
[src]
impl CommitmentConfig
[src]pub fn recent() -> Self
[src]
Please use CommitmentConfig::processed() instead
pub fn max() -> Self
[src]
Please use CommitmentConfig::finalized() instead
pub fn root() -> Self
[src]
Please use CommitmentConfig::finalized() instead
pub fn single() -> Self
[src]
Please use CommitmentConfig::confirmed() instead
pub fn single_gossip() -> Self
[src]
Please use CommitmentConfig::confirmed() instead
pub fn finalized() -> Self
[src]
pub fn confirmed() -> Self
[src]
pub fn processed() -> Self
[src]
pub fn ok(self) -> Option<Self>
[src]
pub fn is_finalized(&self) -> bool
[src]
pub fn is_confirmed(&self) -> bool
[src]
pub fn is_processed(&self) -> bool
[src]
pub fn is_at_least_confirmed(&self) -> bool
[src]
pub fn use_deprecated_commitment(commitment: CommitmentConfig) -> Self
[src]
Trait Implementations
impl Clone for CommitmentConfig
[src]
impl Clone for CommitmentConfig
[src]fn clone(&self) -> CommitmentConfig
[src]
fn clone(&self) -> CommitmentConfig
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for CommitmentConfig
[src]
impl Debug for CommitmentConfig
[src]impl Default for CommitmentConfig
[src]
impl Default for CommitmentConfig
[src]fn default() -> CommitmentConfig
[src]
fn default() -> CommitmentConfig
[src]Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for CommitmentConfig
[src]
impl<'de> Deserialize<'de> for CommitmentConfig
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl FromStr for CommitmentConfig
[src]
impl FromStr for CommitmentConfig
[src]impl PartialEq<CommitmentConfig> for CommitmentConfig
[src]
impl PartialEq<CommitmentConfig> for CommitmentConfig
[src]fn eq(&self, other: &CommitmentConfig) -> bool
[src]
fn eq(&self, other: &CommitmentConfig) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &CommitmentConfig) -> bool
[src]
fn ne(&self, other: &CommitmentConfig) -> bool
[src]This method tests for !=
.
impl Serialize for CommitmentConfig
[src]
impl Serialize for CommitmentConfig
[src]impl Copy for CommitmentConfig
[src]
impl StructuralPartialEq for CommitmentConfig
[src]
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
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
[src]
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
[src]pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
[src]
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
[src]
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
[src]pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
[src]
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiExample for T
[src]
impl<T> AbiExample for T
[src]impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,