fn new(info: PeerInfo, adapter: Arc<NetAdapter>) -> Peer {
		Peer {
			info,
			state: Arc::new(RwLock::new(State::Connected)),
			tracking_adapter: TrackingAdapter::new(adapter),
			connection: None,
		}
	}
// Only accept and connect can be externally used to build a peer
Only accept and connect can be externally used to build a peer
Only accept and connect can be externally used to build a peer
fn new(info: PeerInfo, adapter: Arc<NetAdapter>) -> Peer {
		Peer {
			info,
			state: Arc::new(RwLock::new(State::Connected)),
			tracking_adapter: TrackingAdapter::new(adapter),
			connection: None,
		}
	}
fn new ( info : PeerInfo , adapter : Arc < NetAdapter > ) -> Peer { Peer { info , state : Arc :: new ( RwLock :: new ( State :: Connected ) ) , tracking_adapter : TrackingAdapter :: new ( adapter ) , connection : None , } }
Only accept and connect can be externally used to build a peer
Only accept and connect can be externally used to build a peer
info
PeerInfo
adapter
Arc<NetAdapter>