pub enum ChainFilters<H: Eq + Ord + Hash = ActionHash> {
ToGenesis,
Take(u32),
Until(HashSet<H>),
Both(u32, HashSet<H>),
}
Expand description
Specify which Action
s to allow through
this filter.
Variants
ToGenesis
Allow all up to genesis.
Take(u32)
Take this many (inclusive of the starting position).
Until(HashSet<H>)
Continue until one of these hashes is found.
Both(u32, HashSet<H>)
Combination of both take and until. Whichever is the smaller set.
Trait Implementations
sourceimpl<H: Clone + Eq + Ord + Hash> Clone for ChainFilters<H>
impl<H: Clone + Eq + Ord + Hash> Clone for ChainFilters<H>
sourcefn clone(&self) -> ChainFilters<H>
fn clone(&self) -> ChainFilters<H>
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<'de, H: Eq + Ord + Hash> Deserialize<'de> for ChainFilters<H>where
H: Deserialize<'de>,
impl<'de, H: Eq + Ord + Hash> Deserialize<'de> for ChainFilters<H>where
H: Deserialize<'de>,
sourcefn 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
sourceimpl<H: Eq + Ord + Hash> Hash for ChainFilters<H>
impl<H: Eq + Ord + Hash> Hash for ChainFilters<H>
Create a deterministic hash to compare filters.
sourceimpl<H: Eq + Ord + Hash> PartialEq<ChainFilters<H>> for ChainFilters<H>
impl<H: Eq + Ord + Hash> PartialEq<ChainFilters<H>> for ChainFilters<H>
Implement a deterministic partial eq to compare ChainFilters.
impl<H: Eq + Eq + Ord + Hash> Eq for ChainFilters<H>
impl<H: Eq + Ord + Hash> StructuralEq for ChainFilters<H>
Auto Trait Implementations
impl<H> RefUnwindSafe for ChainFilters<H>where
H: RefUnwindSafe,
impl<H> Send for ChainFilters<H>where
H: Send,
impl<H> Sync for ChainFilters<H>where
H: Sync,
impl<H> Unpin for ChainFilters<H>where
H: Unpin,
impl<H> UnwindSafe for ChainFilters<H>where
H: UnwindSafe,
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.