Function bantamweight::setup_peer
source · [−]pub async fn setup_peer<T: ExternalSharedState + Send + Sync + 'static>(
port: u16,
addr: SocketAddr,
ext_shared_state: Arc<Mutex<T>>
) -> Result<Arc<Mutex<PeerSharedState>>, Box<dyn Error + Send + Sync>>