pub struct BashStreamExecutor;Expand description
Streaming bash protocol executor.
Reuses the same sandboxed process setup as BashExecutor but streams
stdout line-by-line through an mpsc::Sender<StreamChunk> instead of
buffering the entire output.
Trait Implementations§
Source§impl StreamingProtocolExecutor for BashStreamExecutor
impl StreamingProtocolExecutor for BashStreamExecutor
Source§type PreparedData = PreparedBashScript
type PreparedData = PreparedBashScript
Protocol-specific prepared data.
Source§async fn execute_stream(
&mut self,
data: &PreparedBashScript,
ctx: &ExecutionContext,
sender: Sender<StreamChunk>,
) -> Result<StreamMeta>
async fn execute_stream( &mut self, data: &PreparedBashScript, ctx: &ExecutionContext, sender: Sender<StreamChunk>, ) -> Result<StreamMeta>
Execute a streaming request, sending chunks through
sender.
Returns metadata about the completed stream.Auto Trait Implementations§
impl Freeze for BashStreamExecutor
impl RefUnwindSafe for BashStreamExecutor
impl Send for BashStreamExecutor
impl Sync for BashStreamExecutor
impl Unpin for BashStreamExecutor
impl UnsafeUnpin for BashStreamExecutor
impl UnwindSafe for BashStreamExecutor
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