pub enum ProcessFunError {
MultipleTags {
fun: FunId,
},
BadItemType {
item_text: String,
},
IoError(String),
ParseError(String),
ProcessError(String),
SerError(String),
TimeoutError,
}
Expand description
Errors that can occur during process-fun operations
Variants§
MultipleTags
Multiple #[process] attributes were found on a single function. Only one #[process] attribute is allowed per function.
BadItemType
The #[process] attribute was used on an invalid item type. It can only be used on function definitions.
IoError(String)
An I/O error occurred during process execution or file operations
ParseError(String)
Failed to parse Rust source code
ProcessError(String)
Error during process communication between parent and child processes
SerError(String)
serialization/deserialization error for function arguments or results
TimeoutError
Process execution timed out
Trait Implementations§
Source§impl Debug for ProcessFunError
impl Debug for ProcessFunError
Source§impl<'de> Deserialize<'de> for ProcessFunError
impl<'de> Deserialize<'de> for ProcessFunError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ProcessFunError
impl Display for ProcessFunError
Source§impl Error for ProcessFunError
impl Error for ProcessFunError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for ProcessFunError
impl From<Error> for ProcessFunError
Source§impl From<Error> for ProcessFunError
impl From<Error> for ProcessFunError
Auto Trait Implementations§
impl Freeze for ProcessFunError
impl RefUnwindSafe for ProcessFunError
impl Send for ProcessFunError
impl Sync for ProcessFunError
impl Unpin for ProcessFunError
impl UnwindSafe for ProcessFunError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more