pub struct AddressInfo {
pub addr: SocketAddr,
pub services: u64,
pub last_seen: u64,
pub last_success: u64,
pub attempts: u32,
pub source: IpAddr,
pub is_tried: bool,
}Expand description
A known peer address with metadata.
Fields§
§addr: SocketAddrThe peer’s socket address.
services: u64Advertised services bitfield.
last_seen: u64Unix timestamp when we last heard about this address.
last_success: u64Unix timestamp of our last successful connection to this address.
attempts: u32Number of failed connection attempts since last success.
source: IpAddrThe source (who told us about this address).
is_tried: boolWhether this address is in the “tried” table.
Trait Implementations§
Source§impl Clone for AddressInfo
impl Clone for AddressInfo
Source§fn clone(&self) -> AddressInfo
fn clone(&self) -> AddressInfo
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 moreAuto Trait Implementations§
impl Freeze for AddressInfo
impl RefUnwindSafe for AddressInfo
impl Send for AddressInfo
impl Sync for AddressInfo
impl Unpin for AddressInfo
impl UnsafeUnpin for AddressInfo
impl UnwindSafe for AddressInfo
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