tcpserver 2.2.1

rust tcp server frame.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Error, Debug)]
pub enum Error {
    #[error(transparent)]
    IOError(#[from] std::io::Error),
    #[error(transparent)]
    JoinError(#[from] tokio::task::JoinError),
    #[error("not listener or repeat start")]
    NotListenerError,
}

pub type Result<T, E = Error> = core::result::Result<T, E>;