pub enum ChildError {
ExecutionFailed {
reason: String,
},
InvalidInput(String),
Timeout {
elapsed_ms: u64,
},
Internal(String),
}Expand description
Child execution errors.
Used internally for type-safe error handling.
Convert to ChildResultDto for serialization.
Variants§
ExecutionFailed
Execution failed with a reason.
InvalidInput(String)
Input validation failed.
Timeout
Timeout during execution.
Internal(String)
Internal error.
Implementations§
Trait Implementations§
Source§impl Clone for ChildError
impl Clone for ChildError
Source§fn clone(&self) -> ChildError
fn clone(&self) -> ChildError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChildError
impl Debug for ChildError
Source§impl Display for ChildError
impl Display for ChildError
Source§impl Error for ChildError
impl Error for ChildError
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<ChildError> for ChildResult
impl From<ChildError> for ChildResult
Source§fn from(err: ChildError) -> Self
fn from(err: ChildError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChildError
impl RefUnwindSafe for ChildError
impl Send for ChildError
impl Sync for ChildError
impl Unpin for ChildError
impl UnsafeUnpin for ChildError
impl UnwindSafe for ChildError
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