pub struct RawCtxInvocationStrategy { /* private fields */ }Expand description
Strategy that hydrates RawCtx-style buffers into Python and collects shared-buffer results.
Implementations§
Source§impl RawCtxInvocationStrategy
 
impl RawCtxInvocationStrategy
Sourcepub fn new(inputs: Vec<RawCtxInput>) -> Self
 
pub fn new(inputs: Vec<RawCtxInput>) -> Self
Create a RawCtx strategy with the provided input buffers.
Sourcepub fn with_inputs(self, inputs: Vec<RawCtxInput>) -> Self
 
pub fn with_inputs(self, inputs: Vec<RawCtxInput>) -> Self
Replace the current inputs with a new set.
Trait Implementations§
Source§impl Default for RawCtxInvocationStrategy
 
impl Default for RawCtxInvocationStrategy
Source§fn default() -> RawCtxInvocationStrategy
 
fn default() -> RawCtxInvocationStrategy
Returns the “default value” for a type. Read more
Source§impl PyInvocationStrategy for RawCtxInvocationStrategy
 
impl PyInvocationStrategy for RawCtxInvocationStrategy
Source§fn pre_execute_js(&mut self, ctx: &mut InvocationContext<'_>) -> Result<()>
 
fn pre_execute_js(&mut self, ctx: &mut InvocationContext<'_>) -> Result<()>
Hook executed before any Python code runs, while JS context is active.
Source§fn pre_execute_py(&mut self, ctx: &mut InvocationContext<'_>) -> Result<()>
 
fn pre_execute_py(&mut self, ctx: &mut InvocationContext<'_>) -> Result<()>
Hook executed inside the Python interpreter before the user entrypoint.
Source§fn post_execute_js(
    &mut self,
    ctx: &mut InvocationContext<'_>,
    _result: &StrategyResult,
) -> Result<()>
 
fn post_execute_js( &mut self, ctx: &mut InvocationContext<'_>, _result: &StrategyResult, ) -> Result<()>
Hook executed after the entrypoint inside JS.
Source§fn invoke(&mut self, ctx: &mut InvocationContext<'_>) -> Result<StrategyResult>
 
fn invoke(&mut self, ctx: &mut InvocationContext<'_>) -> Result<StrategyResult>
Executes the user entrypoint and returns the raw execution output.
Source§fn post_execute_py(
    &mut self,
    _ctx: &mut InvocationContext<'_>,
    _result: &StrategyResult,
) -> Result<()>
 
fn post_execute_py( &mut self, _ctx: &mut InvocationContext<'_>, _result: &StrategyResult, ) -> Result<()>
Hook executed after the entrypoint inside Python.
Auto Trait Implementations§
impl Freeze for RawCtxInvocationStrategy
impl RefUnwindSafe for RawCtxInvocationStrategy
impl Send for RawCtxInvocationStrategy
impl Sync for RawCtxInvocationStrategy
impl Unpin for RawCtxInvocationStrategy
impl UnwindSafe for RawCtxInvocationStrategy
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