pub enum ScoreAction {
None,
Ban {
peer_id: u64,
addr: SocketAddr,
reason: String,
},
}Expand description
Actions the caller should take after recording misbehavior.
Variants§
Trait Implementations§
Source§impl Clone for ScoreAction
impl Clone for ScoreAction
Source§fn clone(&self) -> ScoreAction
fn clone(&self) -> ScoreAction
Returns a duplicate 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 ScoreAction
impl Debug for ScoreAction
Source§impl PartialEq for ScoreAction
impl PartialEq for ScoreAction
impl Eq for ScoreAction
impl StructuralPartialEq for ScoreAction
Auto Trait Implementations§
impl Freeze for ScoreAction
impl RefUnwindSafe for ScoreAction
impl Send for ScoreAction
impl Sync for ScoreAction
impl Unpin for ScoreAction
impl UnsafeUnpin for ScoreAction
impl UnwindSafe for ScoreAction
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