pub enum CodeExecutorError {
ExecutionFailed(String),
UnsupportedModel(String),
Timeout(u64),
Other(String),
}Expand description
Errors from code executor operations.
Variants§
ExecutionFailed(String)
The code execution failed at runtime.
UnsupportedModel(String)
The requested model does not support code execution.
Timeout(u64)
The execution timed out.
Other(String)
A catch-all for other code executor errors.
Trait Implementations§
Source§impl Debug for CodeExecutorError
impl Debug for CodeExecutorError
Source§impl Display for CodeExecutorError
impl Display for CodeExecutorError
Source§impl Error for CodeExecutorError
impl Error for CodeExecutorError
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()
Auto Trait Implementations§
impl Freeze for CodeExecutorError
impl RefUnwindSafe for CodeExecutorError
impl Send for CodeExecutorError
impl Sync for CodeExecutorError
impl Unpin for CodeExecutorError
impl UnsafeUnpin for CodeExecutorError
impl UnwindSafe for CodeExecutorError
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