pub struct SocketRunner { /* private fields */ }Implementations§
Source§impl SocketRunner
impl SocketRunner
pub async fn new( name: impl Into<String>, cmd: Vec<String>, pool_size: usize, max_in_flight: usize, env: Option<HashMap<String, String>>, cwd: Option<String>, tcp_socket: Option<String>, response_timeout_seconds: Option<f64>, connect_timeout: Duration, shutdown_term_grace: Duration, send_cancel_hints: bool, capture_output: bool, ) -> Result<Self>
Trait Implementations§
Source§impl Runner for SocketRunner
impl Runner for SocketRunner
fn execute<'life0, 'async_trait>(
&'life0 self,
request: ExecutionRequest,
) -> Pin<Box<dyn Future<Output = Result<ExecutionOutcome>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_with_timeout<'life0, 'async_trait>(
&'life0 self,
request: ExecutionRequest,
timeout_duration: Duration,
send_cancel_hint: bool,
) -> Pin<Box<dyn Future<Output = RunnerExecutionResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn cancel<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
job_id: &'life1 str,
request_id: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn handle_timeout<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
job_id: &'life1 str,
request_id: Option<&'life2 str>,
send_cancel_hint: bool,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn close<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for SocketRunner
impl !RefUnwindSafe for SocketRunner
impl Send for SocketRunner
impl Sync for SocketRunner
impl Unpin for SocketRunner
impl UnsafeUnpin for SocketRunner
impl !UnwindSafe for SocketRunner
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