pub struct CommitmentConfig {
pub commitment: CommitmentLevel,
}
Fields§
§commitment: CommitmentLevel
Implementations§
Source§impl CommitmentConfig
impl CommitmentConfig
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
👎Deprecated since 2.0.2: Returns self. Please do not use. Will be removed in the future.
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> 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<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