pub enum ProviderTarget {
Stdio {
program: String,
args: Vec<String>,
},
Http {
url: String,
},
InProcess(Box<dyn ContextProvider>),
}Expand description
How to reach the provider under test. contextgraph-inspect builds one of these
from its CLI arguments; tests build them directly.
Variants§
Stdio
A child-process provider: program plus args.
Http
A remote provider at url.
InProcess(Box<dyn ContextProvider>)
An already-constructed in-process provider (e.g. a built-in).
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ProviderTarget
impl !UnwindSafe for ProviderTarget
impl Freeze for ProviderTarget
impl Send for ProviderTarget
impl Sync for ProviderTarget
impl Unpin for ProviderTarget
impl UnsafeUnpin for ProviderTarget
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