pub struct IsolatedJsonRpcProcess {
pub host_endpoint: JsonRpcLineEndpoint,
pub process_endpoint: JsonRpcLineEndpoint,
pub capability_report: IsolationCapabilityReport,
pub start_result: ProcessStartResult,
}Expand description
In-memory isolated json rpc process fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
Fields§
§host_endpoint: JsonRpcLineEndpointHost endpoint used by this record or request.
process_endpoint: JsonRpcLineEndpointProcess endpoint used by this record or request.
capability_report: IsolationCapabilityReportCapability report used by this record or request.
start_result: ProcessStartResultStart result used by this record or request.
Implementations§
Source§impl IsolatedJsonRpcProcess
impl IsolatedJsonRpcProcess
Sourcepub fn start(
runtime: &dyn IsolationRuntime,
environment: ExecutionEnvironment,
process: IsolatedProcessSpec,
effect_intent: EffectIntent,
) -> Result<Self, AgentError>
pub fn start( runtime: &dyn IsolationRuntime, environment: ExecutionEnvironment, process: IsolatedProcessSpec, effect_intent: EffectIntent, ) -> Result<Self, AgentError>
Start. This records a scripted isolation start result for protocol tests without launching a host process.
Trait Implementations§
Source§impl Clone for IsolatedJsonRpcProcess
impl Clone for IsolatedJsonRpcProcess
Source§fn clone(&self) -> IsolatedJsonRpcProcess
fn clone(&self) -> IsolatedJsonRpcProcess
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 moreAuto Trait Implementations§
impl Freeze for IsolatedJsonRpcProcess
impl RefUnwindSafe for IsolatedJsonRpcProcess
impl Send for IsolatedJsonRpcProcess
impl Sync for IsolatedJsonRpcProcess
impl Unpin for IsolatedJsonRpcProcess
impl UnsafeUnpin for IsolatedJsonRpcProcess
impl UnwindSafe for IsolatedJsonRpcProcess
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