Start to create WS client for cli_player

This commit is contained in:
2022-10-15 10:12:02 +02:00
parent d90560d330
commit 4af2585a8b
11 changed files with 135 additions and 1 deletions

@ -1,2 +1,12 @@
use std::error::Error;
use std::fmt::Display;
use std::io::ErrorKind;
pub mod network_utils;
pub mod string_utils;
pub type Res<E = ()> = Result<E, Box<dyn Error>>;
pub fn boxed_error<D: Display>(msg: D) -> Box<dyn Error> {
Box::new(std::io::Error::new(ErrorKind::Other, msg.to_string()))
}