pub enum BlockHashSource {
Env,
State,
}
Variants§
Env
Before CIP-133, block hash is read from Env
, same as the Ethereum
State
After CIP-133, block hash is read from State
Trait Implementations§
Source§impl Clone for BlockHashSource
impl Clone for BlockHashSource
Source§fn clone(&self) -> BlockHashSource
fn clone(&self) -> BlockHashSource
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 BlockHashSource
impl Debug for BlockHashSource
Source§impl Hash for BlockHashSource
impl Hash for BlockHashSource
Source§impl PartialEq for BlockHashSource
impl PartialEq for BlockHashSource
impl Copy for BlockHashSource
impl Eq for BlockHashSource
impl StructuralPartialEq for BlockHashSource
Auto Trait Implementations§
impl Freeze for BlockHashSource
impl RefUnwindSafe for BlockHashSource
impl Send for BlockHashSource
impl Sync for BlockHashSource
impl Unpin for BlockHashSource
impl UnwindSafe for BlockHashSource
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