Struct ethereum_forkid::ForkFilter
source · [−]pub struct ForkFilter { /* private fields */ }
Expand description
Filter that describes the state of blockchain and can be used to check incoming ForkId
s for compatibility.
Implementations
sourceimpl ForkFilter
impl ForkFilter
sourcepub fn new<F>(head: BlockNumber, genesis: H256, forks: F) -> Selfwhere
F: IntoIterator<Item = BlockNumber>,
pub fn new<F>(head: BlockNumber, genesis: H256, forks: F) -> Selfwhere
F: IntoIterator<Item = BlockNumber>,
Create the filter from provided head, genesis block hash, past forks and expected future forks.
sourcepub fn set_head(&mut self, head: BlockNumber)
pub fn set_head(&mut self, head: BlockNumber)
Set the current head
Trait Implementations
sourceimpl Clone for ForkFilter
impl Clone for ForkFilter
sourcefn clone(&self) -> ForkFilter
fn clone(&self) -> ForkFilter
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ForkFilter
impl Debug for ForkFilter
sourceimpl PartialEq<ForkFilter> for ForkFilter
impl PartialEq<ForkFilter> for ForkFilter
sourcefn eq(&self, other: &ForkFilter) -> bool
fn eq(&self, other: &ForkFilter) -> bool
impl StructuralPartialEq for ForkFilter
Auto Trait Implementations
impl RefUnwindSafe for ForkFilter
impl Send for ForkFilter
impl Sync for ForkFilter
impl Unpin for ForkFilter
impl UnwindSafe for ForkFilter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more