Enum starknet_api::block::BlockStatus
source · pub enum BlockStatus {
Pending,
AcceptedOnL2,
AcceptedOnL1,
Rejected,
}Expand description
The status of a Block.
Variants§
Pending
A pending block; i.e., a block that is yet to be closed.
AcceptedOnL2
A block that was created on L2.
AcceptedOnL1
A block that was accepted on L1.
Rejected
A block rejected on L1.
Trait Implementations§
source§impl Clone for BlockStatus
impl Clone for BlockStatus
source§fn clone(&self) -> BlockStatus
fn clone(&self) -> BlockStatus
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 BlockStatus
impl Debug for BlockStatus
source§impl<'de> Deserialize<'de> for BlockStatus
impl<'de> Deserialize<'de> for BlockStatus
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 Hash for BlockStatus
impl Hash for BlockStatus
source§impl Ord for BlockStatus
impl Ord for BlockStatus
source§fn cmp(&self, other: &BlockStatus) -> Ordering
fn cmp(&self, other: &BlockStatus) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for BlockStatus
impl PartialEq for BlockStatus
source§fn eq(&self, other: &BlockStatus) -> bool
fn eq(&self, other: &BlockStatus) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for BlockStatus
impl PartialOrd for BlockStatus
source§fn partial_cmp(&self, other: &BlockStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &BlockStatus) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for BlockStatus
impl Serialize for BlockStatus
impl Copy for BlockStatus
impl Eq for BlockStatus
impl StructuralPartialEq for BlockStatus
Auto Trait Implementations§
impl RefUnwindSafe for BlockStatus
impl Send for BlockStatus
impl Sync for BlockStatus
impl Unpin for BlockStatus
impl UnwindSafe for BlockStatus
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.