Struct bitcoin_peerman::PeerMisbehavior
source · pub struct PeerMisbehavior {
pub score: i32,
pub should_discourage: bool,
}Fields§
§score: i32| Accumulated misbehavior score for | this peer | |
should_discourage: bool| Whether this peer should be disconnected | and marked as discouraged (unless it | has NetPermissionFlags::NoBan permission). | |
Trait Implementations§
source§impl Default for PeerMisbehavior
impl Default for PeerMisbehavior
source§impl PartialEq<PeerMisbehavior> for PeerMisbehavior
impl PartialEq<PeerMisbehavior> for PeerMisbehavior
source§fn eq(&self, other: &PeerMisbehavior) -> bool
fn eq(&self, other: &PeerMisbehavior) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for PeerMisbehavior
impl StructuralEq for PeerMisbehavior
impl StructuralPartialEq for PeerMisbehavior
Auto Trait Implementations§
impl RefUnwindSafe for PeerMisbehavior
impl Send for PeerMisbehavior
impl Sync for PeerMisbehavior
impl Unpin for PeerMisbehavior
impl UnwindSafe for PeerMisbehavior
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
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.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more