From c5fb22694e95f12c24b8d8af76999be7aea3fcec Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 12 Jan 2026 04:28:28 +0800 Subject: Reorganize crate structure and move documentation files --- actions/src/connection/error.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 actions/src/connection/error.rs (limited to 'actions/src/connection/error.rs') diff --git a/actions/src/connection/error.rs b/actions/src/connection/error.rs new file mode 100644 index 0000000..241c16e --- /dev/null +++ b/actions/src/connection/error.rs @@ -0,0 +1,14 @@ +use std::io; +use thiserror::Error; + +#[derive(Error, Debug, Clone)] +pub enum ConnectionError { + #[error("I/O error: {0}")] + Io(String), +} + +impl From for ConnectionError { + fn from(error: io::Error) -> Self { + ConnectionError::Io(error.to_string()) + } +} -- cgit