pub struct PeerStrikeEntry {
pub ip: String,
pub count: i64,
}Expand description
A peer strike entry for session persistence.
Fields§
§ip: StringIP address of the peer that received strikes.
count: i64Number of accumulated strikes.
Trait Implementations§
Source§impl Clone for PeerStrikeEntry
impl Clone for PeerStrikeEntry
Source§fn clone(&self) -> PeerStrikeEntry
fn clone(&self) -> PeerStrikeEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PeerStrikeEntry
impl Debug for PeerStrikeEntry
Source§impl<'de> Deserialize<'de> for PeerStrikeEntry
impl<'de> Deserialize<'de> for PeerStrikeEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PeerStrikeEntry
impl PartialEq for PeerStrikeEntry
Source§fn eq(&self, other: &PeerStrikeEntry) -> bool
fn eq(&self, other: &PeerStrikeEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PeerStrikeEntry
impl Serialize for PeerStrikeEntry
impl Eq for PeerStrikeEntry
impl StructuralPartialEq for PeerStrikeEntry
Auto Trait Implementations§
impl Freeze for PeerStrikeEntry
impl RefUnwindSafe for PeerStrikeEntry
impl Send for PeerStrikeEntry
impl Sync for PeerStrikeEntry
impl Unpin for PeerStrikeEntry
impl UnsafeUnpin for PeerStrikeEntry
impl UnwindSafe for PeerStrikeEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.