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 · 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§impl Serialize for PeerStrikeEntry
impl Serialize 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