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 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
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§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
)