pub trait RemoteRunnerProvider:
Send
+ Sync
+ 'static {
// Required methods
fn id(&self) -> RemoteRunnerProviderId;
fn capabilities(&self) -> RunnerCapabilities;
fn create_session<'life0, 'async_trait>(
&'life0 self,
destination: RunnerDestination,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn RemoteRunnerSession>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn resume_session<'life0, 'async_trait>(
&'life0 self,
state: RunnerSessionState,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn RemoteRunnerSession>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided methods
fn setup_hint(&self) -> Option<String> { ... }
fn validate_destination<'life0, 'life1, 'async_trait>(
&'life0 self,
_destination: &'life1 RunnerDestination,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}Required Methods§
fn id(&self) -> RemoteRunnerProviderId
fn capabilities(&self) -> RunnerCapabilities
fn create_session<'life0, 'async_trait>(
&'life0 self,
destination: RunnerDestination,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn RemoteRunnerSession>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn resume_session<'life0, 'async_trait>(
&'life0 self,
state: RunnerSessionState,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn RemoteRunnerSession>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
Sourcefn setup_hint(&self) -> Option<String>
fn setup_hint(&self) -> Option<String>
- Optional setup guidance shown by runner pickers when the provider is
- installed but not yet usable (for example a missing credential env
- var). Must name only documented env vars and never include secret
- values.
Nonemeans the provider is ready or needs no setup hint.
fn validate_destination<'life0, 'life1, 'async_trait>(
&'life0 self,
_destination: &'life1 RunnerDestination,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".