Struct sc_peerset::ReputationChange [−][src]
Description of a reputation adjustment for a node.
Fields
value: i32Reputation delta.
reason: &'static strReason for reputation change.
Implementations
impl ReputationChange[src]
impl ReputationChange[src]pub const fn new(value: i32, reason: &'static str) -> ReputationChange[src]
New reputation change with given delta and reason.
pub const fn new_fatal(reason: &'static str) -> ReputationChange[src]
New reputation change that forces minimum possible reputation.
Trait Implementations
impl Clone for ReputationChange[src]
impl Clone for ReputationChange[src]fn clone(&self) -> ReputationChange[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl PartialEq<ReputationChange> for ReputationChange[src]
impl PartialEq<ReputationChange> for ReputationChange[src]