Skip to main content

connection_handler_with_executor

Function connection_handler_with_executor 

Source
pub async fn connection_handler_with_executor<S>(
    stream: S,
    state: DaemonState,
    runner: Arc<dyn CommandRunner + Send + Sync>,
    executor: Arc<dyn ActionExecutor>,
    caller_role: CallerRole,
)
where S: AsyncRead + AsyncWrite + Unpin + Send + 'static,
Expand description

Inner handler that accepts an explicit ActionExecutor.

Production code enters via unix_connection_handler or vsock_connection_handler; tests call this directly with a mock executor.