pub struct CommitmentConfig {
pub commitment: CommitmentLevel,
}
Available on crate feature
full
only.Fields§
§commitment: CommitmentLevel
Implementations§
Source§impl CommitmentConfig
impl CommitmentConfig
pub const fn finalized() -> CommitmentConfig
pub const fn confirmed() -> CommitmentConfig
pub const fn processed() -> CommitmentConfig
pub fn ok(self) -> Option<CommitmentConfig>
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, ) -> CommitmentConfig
👎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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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<CommitmentConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommitmentConfig, <__D as Deserializer<'de>>::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§type Err = ParseCommitmentLevelError
type Err = ParseCommitmentLevelError
The associated error which can be returned from parsing.
Source§fn from_str(
s: &str,
) -> Result<CommitmentConfig, <CommitmentConfig as FromStr>::Err>
fn from_str( s: &str, ) -> Result<CommitmentConfig, <CommitmentConfig as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreSource§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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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 Twhere
T: Serialize + AbiExample,
impl<T> AbiEnumVisitor for Twhere
T: Serialize + AbiExample,
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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