pub struct SessionSpec {
pub kind: SpecKind,
pub project_root: Option<PathBuf>,
pub ctx: Option<Value>,
}Expand description
Complete specification required to spawn a new execution session.
SessionSpec is a pure value type passed to crate::execution::ExecutionService::spawn.
It carries no runtime handles and is safe to clone and serialize.
Fields§
§kind: SpecKindThe kind of execution to perform.
project_root: Option<PathBuf>Optional project root directory. When None, the engine chooses a default.
ctx: Option<Value>Arbitrary JSON context forwarded to the execution environment.
Trait Implementations§
Source§impl Clone for SessionSpec
impl Clone for SessionSpec
Source§fn clone(&self) -> SessionSpec
fn clone(&self) -> SessionSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SessionSpec
impl Debug for SessionSpec
Source§impl<'de> Deserialize<'de> for SessionSpec
impl<'de> Deserialize<'de> for SessionSpec
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
Auto Trait Implementations§
impl Freeze for SessionSpec
impl RefUnwindSafe for SessionSpec
impl Send for SessionSpec
impl Sync for SessionSpec
impl Unpin for SessionSpec
impl UnsafeUnpin for SessionSpec
impl UnwindSafe for SessionSpec
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