use hightower_wireguard::connection::Connection;
use std::sync::Arc;
#[derive(Clone)]
pub struct TransportServer {
connection: Arc<Connection>,
}
impl TransportServer {
pub(crate) fn new(connection: Connection) -> Self {
Self { connection: Arc::new(connection) }
}
pub fn connection(&self) -> &Connection {
&self.connection
}
}