pub struct DuplicateState { /* private fields */ }
Implementations§
source§impl DuplicateState
impl DuplicateState
pub fn new_from_state( slot: Slot, gossip_duplicate_confirmed_slots: &BTreeMap<Slot, Hash>, fork_choice: &mut HeaviestSubtreeForkChoice, is_dead: impl Fn() -> bool, get_hash: impl Fn() -> Option<Hash> ) -> Self
Trait Implementations§
source§impl Debug for DuplicateState
impl Debug for DuplicateState
source§impl PartialEq<DuplicateState> for DuplicateState
impl PartialEq<DuplicateState> for DuplicateState
source§fn eq(&self, other: &DuplicateState) -> bool
fn eq(&self, other: &DuplicateState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DuplicateState
impl StructuralEq for DuplicateState
impl StructuralPartialEq for DuplicateState
Auto Trait Implementations§
impl RefUnwindSafe for DuplicateState
impl Send for DuplicateState
impl Sync for DuplicateState
impl Unpin for DuplicateState
impl UnwindSafe for DuplicateState
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request