Struct ckb_network::peer_store::types::BannedAddr
source · pub struct BannedAddr {
pub address: IpNetwork,
pub ban_until: u64,
pub ban_reason: String,
pub created_at: u64,
}
Expand description
Banned addr info
Fields§
§address: IpNetwork
Ip address
ban_until: u64
Ban until time
ban_reason: String
Ban reason
created_at: u64
Ban time
Trait Implementations§
source§impl Clone for BannedAddr
impl Clone for BannedAddr
source§fn clone(&self) -> BannedAddr
fn clone(&self) -> BannedAddr
Returns a copy 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 BannedAddr
impl Debug for BannedAddr
source§impl<'de> Deserialize<'de> for BannedAddr
impl<'de> Deserialize<'de> for BannedAddr
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 Hash for BannedAddr
impl Hash for BannedAddr
source§impl PartialEq for BannedAddr
impl PartialEq for BannedAddr
source§fn eq(&self, other: &BannedAddr) -> bool
fn eq(&self, other: &BannedAddr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BannedAddr
impl Serialize for BannedAddr
impl Eq for BannedAddr
impl StructuralPartialEq for BannedAddr
Auto Trait Implementations§
impl Freeze for BannedAddr
impl RefUnwindSafe for BannedAddr
impl Send for BannedAddr
impl Sync for BannedAddr
impl Unpin for BannedAddr
impl UnwindSafe for BannedAddr
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more