Enum fuel_core_sync::ports::PeerReportReason
source · pub enum PeerReportReason {
SuccessfulBlockImport,
MissingBlockHeaders,
BadBlockHeader,
MissingTransactions,
InvalidTransactions,
}
Expand description
Possible reasons to report a peer
Variants§
SuccessfulBlockImport
Successfully imported block
MissingBlockHeaders
Did not receive advertised block headers
BadBlockHeader
Report a peer for sending a bad block header
MissingTransactions
Did not receive advertised transactions
InvalidTransactions
Received invalid transactions
Trait Implementations§
source§impl Clone for PeerReportReason
impl Clone for PeerReportReason
source§fn clone(&self) -> PeerReportReason
fn clone(&self) -> PeerReportReason
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 PeerReportReason
impl Debug for PeerReportReason
source§impl PartialEq for PeerReportReason
impl PartialEq for PeerReportReason
source§fn eq(&self, other: &PeerReportReason) -> bool
fn eq(&self, other: &PeerReportReason) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PeerReportReason
impl Eq for PeerReportReason
impl StructuralPartialEq for PeerReportReason
Auto Trait Implementations§
impl Freeze for PeerReportReason
impl RefUnwindSafe for PeerReportReason
impl Send for PeerReportReason
impl Sync for PeerReportReason
impl Unpin for PeerReportReason
impl UnwindSafe for PeerReportReason
Blanket Implementations§
source§impl<T> AnyDebug for T
impl<T> AnyDebug for T
source§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any
.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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more