bumb dependencies

This commit is contained in:
Robin Appelman 2022-05-20 18:35:50 +02:00
commit c2fd7cd3f8
3 changed files with 350 additions and 280 deletions

View file

@ -1,8 +1,8 @@
use crate::Error;
use rcon::Connection;
use tokio::net::ToSocketAddrs;
use tokio::net::{TcpStream, ToSocketAddrs};
pub struct Rcon(Connection);
pub struct Rcon(Connection<TcpStream>);
impl Rcon {
pub async fn new<A: ToSocketAddrs>(host: A, password: &str) -> Result<Self, Error> {