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§fn eq(&self, other: &CommitmentLevel) -> bool
fn eq(&self, other: &CommitmentLevel) -> bool
self
and other
values to be equal, and is used
by ==
.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
§type Layout = PyCell<CommitmentLevel>
type Layout = PyCell<CommitmentLevel>
§type ThreadChecker = ThreadCheckerStub<CommitmentLevel>
type ThreadChecker = ThreadCheckerStub<CommitmentLevel>
§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
§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
§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.