pub enum CommitmentLevel {
Processed,
Confirmed,
Finalized,
}
Expand description
RPC request commitment <https://docs.solana.com/developing/clients/jsonrpc-api#configuring-state-commitment>
_ options.
Variants§
Processed
The highest slot of the heaviest fork processed by the node. Ledger state at this slot is not derived from a confirmed or finalized block, but if multiple forks are present, is from the fork the validator believes is most likely to finalize.
Confirmed
The highest slot that has been voted on by supermajority of the cluster, ie. is confirmed. Confirmation incorporates votes from gossip and replay. It does not count votes on descendants of a block, only direct votes on that block, and upholds “optimistic confirmation” guarantees in release 1.3 and onwards.
Finalized
The highest slot having reached max vote lockout, as recognized by a supermajority of the cluster.
Implementations§
Source§impl CommitmentLevel
impl CommitmentLevel
pub fn new_from_str(s: &str) -> PyResult<Self>
Sourcepub fn new_default() -> Self
pub fn new_default() -> Self
Create a new default instance.
Trait Implementations§
Source§impl Clone for CommitmentLevel
impl Clone for CommitmentLevel
Source§fn clone(&self) -> CommitmentLevel
fn clone(&self) -> CommitmentLevel
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CommitmentLevel
impl Debug for CommitmentLevel
Source§impl Default for CommitmentLevel
impl Default for CommitmentLevel
Source§impl<'de> Deserialize<'de> for CommitmentLevel
impl<'de> Deserialize<'de> for CommitmentLevel
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>,
Source§impl From<CommitmentConfig> for CommitmentLevel
impl From<CommitmentConfig> for CommitmentLevel
Source§fn from(c: CommitmentConfig) -> Self
fn from(c: CommitmentConfig) -> Self
Source§impl From<CommitmentConfig> for CommitmentLevel
impl From<CommitmentConfig> for CommitmentLevel
Source§fn from(c: CommitmentConfigOriginal) -> Self
fn from(c: CommitmentConfigOriginal) -> Self
Source§impl From<CommitmentLevel> for CommitmentConfig
impl From<CommitmentLevel> for CommitmentConfig
Source§fn from(c: CommitmentLevel) -> Self
fn from(c: CommitmentLevel) -> Self
Source§impl From<CommitmentLevel> for CommitmentConfig
impl From<CommitmentLevel> for CommitmentConfig
Source§fn from(c: CommitmentLevel) -> Self
fn from(c: CommitmentLevel) -> Self
Source§impl From<CommitmentLevel> for CommitmentLevel
impl From<CommitmentLevel> for CommitmentLevel
Source§fn from(c: CommitmentLevelOriginal) -> Self
fn from(c: CommitmentLevelOriginal) -> Self
Source§impl From<CommitmentLevel> for CommitmentLevel
impl From<CommitmentLevel> for CommitmentLevel
Source§fn from(c: CommitmentLevel) -> Self
fn from(c: CommitmentLevel) -> Self
Source§impl Hash for CommitmentLevel
impl Hash for CommitmentLevel
Source§impl PartialEq for CommitmentLevel
impl PartialEq for CommitmentLevel
Source§impl PyClass for CommitmentLevel
impl PyClass for CommitmentLevel
Source§impl PyClassImpl for CommitmentLevel
impl PyClassImpl for CommitmentLevel
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
Source§type ThreadChecker = SendablePyClass<CommitmentLevel>
type ThreadChecker = SendablePyClass<CommitmentLevel>
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a CommitmentLevel
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a CommitmentLevel
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut CommitmentLevel
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut CommitmentLevel
Source§impl PyMethods<CommitmentLevel> for PyClassImplCollector<CommitmentLevel>
impl PyMethods<CommitmentLevel> for PyClassImplCollector<CommitmentLevel>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for CommitmentLevel
impl PyTypeInfo for CommitmentLevel
Source§type AsRefTarget = PyCell<CommitmentLevel>
type AsRefTarget = PyCell<CommitmentLevel>
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
object
is an instance of this type or a subclass of this type.Source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
object
is an instance of this type.Source§impl Serialize for CommitmentLevel
impl Serialize for CommitmentLevel
impl Copy for CommitmentLevel
impl Eq for CommitmentLevel
impl StructuralPartialEq for CommitmentLevel
Auto Trait Implementations§
impl Freeze for CommitmentLevel
impl RefUnwindSafe for CommitmentLevel
impl Send for CommitmentLevel
impl Sync for CommitmentLevel
impl Unpin for CommitmentLevel
impl UnwindSafe for CommitmentLevel
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
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<'a, T> FromPyObject<'a> for T
impl<'a, T> FromPyObject<'a> for T
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>
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>
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