pub struct ProtocolRunner { /* private fields */ }Expand description
An executor reached by spawning a helper and talking JSON lines.
Implementations§
Source§impl ProtocolRunner
impl ProtocolRunner
Sourcepub fn new(command: Vec<String>) -> Self
pub fn new(command: Vec<String>) -> Self
A runner that spawns command (argv) once per batch.
Once per batch, not once per job and not once for the runner’s lifetime: it is the shape a VM supervisor already has, it gives the far side a natural place to tear down whatever it built, and a helper that dies takes one batch with it rather than every batch after it.
Trait Implementations§
Source§impl CiExecutor for ProtocolRunner
impl CiExecutor for ProtocolRunner
Source§fn info(&mut self) -> Result<ExecutorInfo, ExecutorError>
fn info(&mut self) -> Result<ExecutorInfo, ExecutorError>
Identity and protocol version. Called once before any job, so a
mismatched provider is refused before it can return a verdict
that means something else than it appears to. Read more
Auto Trait Implementations§
impl Freeze for ProtocolRunner
impl RefUnwindSafe for ProtocolRunner
impl Send for ProtocolRunner
impl Sync for ProtocolRunner
impl Unpin for ProtocolRunner
impl UnsafeUnpin for ProtocolRunner
impl UnwindSafe for ProtocolRunner
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