pub enum BlockNumber {
Latest,
Earliest,
Pending,
Number(U64),
}
Expand description
Block Number
Variants§
Latest
Latest block
Earliest
Earliest block (genesis)
Pending
Pending block (not yet part of the blockchain)
Number(U64)
Block by number from canon chain
Trait Implementations§
Source§impl Clone for BlockNumber
impl Clone for BlockNumber
Source§fn clone(&self) -> BlockNumber
fn clone(&self) -> BlockNumber
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 BlockNumber
impl Debug for BlockNumber
Source§impl<'a> Deserialize<'a> for BlockNumber
impl<'a> Deserialize<'a> for BlockNumber
Source§fn deserialize<D>(deserializer: D) -> Result<BlockNumber, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<BlockNumber, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<BlockNumber> for BlockId
impl From<BlockNumber> for BlockId
Source§fn from(num: BlockNumber) -> Self
fn from(num: BlockNumber) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BlockNumber
impl PartialEq for BlockNumber
Source§impl Serialize for BlockNumber
impl Serialize for BlockNumber
impl Copy for BlockNumber
impl StructuralPartialEq for BlockNumber
Auto Trait Implementations§
impl Freeze for BlockNumber
impl RefUnwindSafe for BlockNumber
impl Send for BlockNumber
impl Sync for BlockNumber
impl Unpin for BlockNumber
impl UnwindSafe for BlockNumber
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