pub enum ForkFilterKey {
Block(BlockNumber),
Time(u64),
}
Expand description
How to filter forks.
Variants§
Trait Implementations§
Source§impl Clone for ForkFilterKey
impl Clone for ForkFilterKey
Source§fn clone(&self) -> ForkFilterKey
fn clone(&self) -> ForkFilterKey
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 ForkFilterKey
impl Debug for ForkFilterKey
Source§impl<'de> Deserialize<'de> for ForkFilterKey
impl<'de> Deserialize<'de> for ForkFilterKey
Source§fn 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
Source§impl From<ForkFilterKey> for u64
impl From<ForkFilterKey> for u64
Source§fn from(value: ForkFilterKey) -> Self
fn from(value: ForkFilterKey) -> Self
Converts to this type from the input type.
Source§impl Ord for ForkFilterKey
impl Ord for ForkFilterKey
Source§impl PartialEq for ForkFilterKey
impl PartialEq for ForkFilterKey
Source§impl PartialOrd for ForkFilterKey
impl PartialOrd for ForkFilterKey
Source§impl Serialize for ForkFilterKey
impl Serialize for ForkFilterKey
impl Copy for ForkFilterKey
impl Eq for ForkFilterKey
impl StructuralPartialEq for ForkFilterKey
Auto Trait Implementations§
impl Freeze for ForkFilterKey
impl RefUnwindSafe for ForkFilterKey
impl Send for ForkFilterKey
impl Sync for ForkFilterKey
impl Unpin for ForkFilterKey
impl UnwindSafe for ForkFilterKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes
Size for each variant:
Block
: 8 bytesTime
: 8 bytes