mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-07 18:24:36 +00:00
zero copy tunnel (#55)
make tunnel zero copy, for better performance. remove most of the locks in io path. introduce quic tunnel prepare for encryption
This commit is contained in:
@@ -2,7 +2,7 @@ use std::{io, result};
|
||||
|
||||
use thiserror::Error;
|
||||
|
||||
use crate::tunnels;
|
||||
use crate::{tunnel, tunnels};
|
||||
|
||||
use super::PeerId;
|
||||
|
||||
@@ -38,6 +38,15 @@ pub enum Error {
|
||||
Unknown,
|
||||
#[error("anyhow error: {0}")]
|
||||
AnyhowError(#[from] anyhow::Error),
|
||||
|
||||
#[error("wait resp error: {0}")]
|
||||
WaitRespError(String),
|
||||
|
||||
#[error("tunnel error")]
|
||||
TunnelErr(#[from] tunnel::TunnelError),
|
||||
|
||||
#[error("message decode error: {0}")]
|
||||
MessageDecodeError(String),
|
||||
}
|
||||
|
||||
pub type Result<T> = result::Result<T, Error>;
|
||||
|
||||
Reference in New Issue
Block a user