tcp-channel-server 0.3.0

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

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

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