use async_trait::async_trait;
use crate::Result;
use crate::{connection::Connection, locator::Peer};
#[async_trait]
pub trait Connector {
async fn new_outgoing_connection(&mut self, locator: &Peer) -> Result<Connection>;
async fn accept_incoming_connection(&mut self) -> Result<Option<Connection>>;
}