diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-10-06 17:20:25 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-10-06 17:20:25 +0800 |
| commit | dd9e70ad313a7d505370217a411bca41dbb5d36e (patch) | |
| tree | 09819fc478ed0b2158c9f27ce65a9c3005bed89b /crates | |
| parent | a6f73176a51c3aaef5c16b7c9d6f4923c9557d67 (diff) | |
feat: add new error variants to TcpTargetError
- Add NotLocal error for actions requiring local execution
- Add NotRemote error for actions requiring remote execution
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/utils/tcp_connection/src/error.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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<io::Error> for TcpTargetError { |
