pub enum Runner {
Offline,
Python {
object: Option<String>,
},
Command(Vec<String>),
Embedded,
}Expand description
How a backend’s work runs.
Variants§
Offline
The deterministic reference harness, in process: no backend process.
Python
hlock’s Python worker, running a Python backend: built in or found by its
hlock.backends entry point (object: None), or a module:attr object.
Command(Vec<String>)
An executable that speaks the contract, given the request and response paths after its own arguments.
Embedded
An Executor a Rust program handed the resolver in process
(crate::Resolver::with_executor).
Trait Implementations§
impl Eq for Runner
impl StructuralPartialEq for Runner
Auto Trait Implementations§
impl Forget for Runner
impl Freeze for Runner
impl Move for Runner
impl RefUnwindSafe for Runner
impl Send for Runner
impl Sync for Runner
impl Unpin for Runner
impl UnsafeUnpin for Runner
impl UnwindSafe for Runner
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.