pub trait JitGateway:
Debug
+ Send
+ Sync {
// Required method
fn generate_jit_config<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
target: &'life1 ScaleTarget,
request: &'life2 JitRunnerRequest,
cancel: &'life3 CancelToken,
) -> Pin<Box<dyn Future<Output = Result<JitRegistration, JitError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
}Expand description
Just-in-time runner registration.
A trait for crate::rest::InventoryGateway’s reason: e3’s launch path is
tested against runner_manager_testkit::github::FakeGithub, with no network
and no wiremock in its dependency graph. RestJit is the one
implementation that talks to GitHub.
Required Methods§
Sourcefn generate_jit_config<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
target: &'life1 ScaleTarget,
request: &'life2 JitRunnerRequest,
cancel: &'life3 CancelToken,
) -> Pin<Box<dyn Future<Output = Result<JitRegistration, JitError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn generate_jit_config<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
target: &'life1 ScaleTarget,
request: &'life2 JitRunnerRequest,
cancel: &'life3 CancelToken,
) -> Pin<Box<dyn Future<Output = Result<JitRegistration, JitError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".