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 const fn finalized() -> Self
pub const fn confirmed() -> Self
pub const 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 for CommitmentConfig
impl PartialEq for CommitmentConfig
source§impl Serialize for CommitmentConfig
impl Serialize for CommitmentConfig
impl Copy for CommitmentConfig
impl Eq for CommitmentConfig
impl StructuralPartialEq for CommitmentConfig
Auto Trait Implementations§
impl Freeze for CommitmentConfig
impl RefUnwindSafe for CommitmentConfig
impl Send for CommitmentConfig
impl Sync for CommitmentConfig
impl Unpin for CommitmentConfig
impl UnwindSafe for CommitmentConfig
Blanket Implementations§
source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, _digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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