From dd9e70ad313a7d505370217a411bca41dbb5d36e Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 6 Oct 2025 17:20:25 +0800 Subject: feat: add new error variants to TcpTargetError - Add NotLocal error for actions requiring local execution - Add NotRemote error for actions requiring remote execution --- crates/utils/tcp_connection/src/error.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crates/utils') diff --git a/crates/utils/tcp_connection/src/error.rs b/crates/utils/tcp_connection/src/error.rs index ffcce6f..691e5ee 100644 --- a/crates/utils/tcp_connection/src/error.rs +++ b/crates/utils/tcp_connection/src/error.rs @@ -35,6 +35,12 @@ pub enum TcpTargetError { #[error("Pool already exists: {0}")] PoolAlreadyExists(String), + + #[error("Not local machine: {0}")] + NotLocal(String), + + #[error("Not remote machine: {0}")] + NotRemote(String), } impl From for TcpTargetError { -- cgit