pub struct AddedPeerInfo {
pub(crate) address: AddrV2,
pub(crate) port: u16,
pub(crate) v1_fallback: bool,
}Expand description
A simple struct of added peers, used to track the ones we added manually by addnode <ip:port> add command.
Fields§
§address: AddrV2The address of the peer
port: u16The port of the peer
v1_fallback: boolWhether we should allow V1 fallback for this connection
Trait Implementations§
Source§impl Clone for AddedPeerInfo
impl Clone for AddedPeerInfo
Source§fn clone(&self) -> AddedPeerInfo
fn clone(&self) -> AddedPeerInfo
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 moreAuto Trait Implementations§
impl Freeze for AddedPeerInfo
impl RefUnwindSafe for AddedPeerInfo
impl Send for AddedPeerInfo
impl Sync for AddedPeerInfo
impl Unpin for AddedPeerInfo
impl UnwindSafe for AddedPeerInfo
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