From 1f2462ae53446c37c6cfe53a57ea86f695c4ef0a Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 14 Aug 2026 00:14:30 +0800 Subject: docs: expand trait and type documentation with examples --- mingling_core/src/asset/chain/error.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'mingling_core/src/asset/chain') diff --git a/mingling_core/src/asset/chain/error.rs b/mingling_core/src/asset/chain/error.rs index bb5f679..4845dbd 100644 --- a/mingling_core/src/asset/chain/error.rs +++ b/mingling_core/src/asset/chain/error.rs @@ -1,12 +1,15 @@ use crate::error::ProgramInternalExecuteError; -/// Represents errors that can occur during chain processing. +/// Represents error types that occur in a chained processing pipeline. +/// +/// This enum is used to uniformly encapsulate various exceptions that may +/// occur during the execution of an entire chain, including IO errors and +/// other custom error messages. #[derive(Debug)] pub enum ChainProcessError { - /// An error with a custom description. + /// Other unclassified generic errors, stored as a string description. Other(String), - - /// An I/O error that occurred during chain processing. + /// Errors resulting from a failed IO operation, holding the standard library's [`std::io::Error`] IO(std::io::Error), } -- cgit