pub trait RemoteRunnerSession:
Send
+ Sync
+ 'static {
// Required methods
fn state(&self) -> RunnerSessionState;
fn run_command<'life0, 'async_trait>(
&'life0 self,
request: RunnerCommandRequest,
) -> Pin<Box<dyn Future<Output = Result<RunnerCommandResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn read_file<'life0, 'async_trait>(
&'life0 self,
request: RunnerFileReadRequest,
) -> Pin<Box<dyn Future<Output = Result<RunnerFileReadResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn write_file<'life0, 'async_trait>(
&'life0 self,
request: RunnerFileWriteRequest,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn expose_port<'life0, 'async_trait>(
&'life0 self,
request: RunnerPortRequest,
) -> Pin<Box<dyn Future<Output = Result<RunnerPortResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn snapshot<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<RunnerSnapshotRef>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn close<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided methods
fn cancel_command<'life0, 'life1, 'async_trait>(
&'life0 self,
_command_id: &'life1 RunnerCommandId,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn export_artifact<'life0, 'async_trait>(
&'life0 self,
_request: RunnerArtifactExportRequest,
) -> Pin<Box<dyn Future<Output = Result<RunnerArtifactExportResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}Required Methods§
fn state(&self) -> RunnerSessionState
fn run_command<'life0, 'async_trait>(
&'life0 self,
request: RunnerCommandRequest,
) -> Pin<Box<dyn Future<Output = Result<RunnerCommandResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read_file<'life0, 'async_trait>(
&'life0 self,
request: RunnerFileReadRequest,
) -> Pin<Box<dyn Future<Output = Result<RunnerFileReadResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn write_file<'life0, 'async_trait>(
&'life0 self,
request: RunnerFileWriteRequest,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn expose_port<'life0, 'async_trait>(
&'life0 self,
request: RunnerPortRequest,
) -> Pin<Box<dyn Future<Output = Result<RunnerPortResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn snapshot<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<RunnerSnapshotRef>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn close<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
fn cancel_command<'life0, 'life1, 'async_trait>(
&'life0 self,
_command_id: &'life1 RunnerCommandId,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn export_artifact<'life0, 'async_trait>(
&'life0 self,
_request: RunnerArtifactExportRequest,
) -> Pin<Box<dyn Future<Output = Result<RunnerArtifactExportResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".