Enum ethers_core::types::BlockNumber [−][src]
pub enum BlockNumber {
Latest,
Earliest,
Pending,
Number(U64),
}
Expand description
A block Number (or tag - “latest”, “earliest”, “pending”)
Variants
Latest block
Earliest block (genesis)
Pending block (not yet part of the blockchain)
Number(U64)
Block by number from canon chain
Tuple Fields of Number
0: U64
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for BlockNumber
impl Send for BlockNumber
impl Sync for BlockNumber
impl Unpin for BlockNumber
impl UnwindSafe for BlockNumber
Blanket Implementations
Mutably borrows from an owned value. Read more