pub enum SpawnError {
Engine(String),
InvalidSpec(String),
}Expand description
Error returned by crate::execution::ExecutionService::spawn.
§Note on #[from] EngineError
In this subtask, the engine-level error is represented as a String wrapper.
Subtask 2 will replace Engine(String) with Engine(#[from] SessionError) once
the engine’s SessionError type is available, using #[from] for automatic
conversion.
Variants§
Engine(String)
The engine failed to start the session.
InvalidSpec(String)
The provided SessionSpec was invalid.
Trait Implementations§
Source§impl Debug for SpawnError
impl Debug for SpawnError
Source§impl<'de> Deserialize<'de> for SpawnError
impl<'de> Deserialize<'de> for SpawnError
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 SpawnError
impl Display for SpawnError
Source§impl Error for SpawnError
impl Error for SpawnError
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 SpawnError
impl RefUnwindSafe for SpawnError
impl Send for SpawnError
impl Sync for SpawnError
impl Unpin for SpawnError
impl UnsafeUnpin for SpawnError
impl UnwindSafe for SpawnError
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