pub trait Task:
Send
+ Sync
+ 'static {
Show 19 methods
// Provided methods
fn state(
&self,
state_request: StateRequest,
) -> impl Future<Output = Result<StateResponse>> + Send { ... }
fn create(
&self,
create_task_request: CreateTaskRequest,
) -> impl Future<Output = Result<CreateTaskResponse>> + Send { ... }
fn start(
&self,
start_request: StartRequest,
) -> impl Future<Output = Result<StartResponse>> + Send { ... }
fn delete(
&self,
delete_request: DeleteRequest,
) -> impl Future<Output = Result<DeleteResponse>> + Send { ... }
fn pids(
&self,
pids_request: PidsRequest,
) -> impl Future<Output = Result<PidsResponse>> + Send { ... }
fn pause(
&self,
pause_request: PauseRequest,
) -> impl Future<Output = Result<()>> + Send { ... }
fn resume(
&self,
resume_request: ResumeRequest,
) -> impl Future<Output = Result<()>> + Send { ... }
fn checkpoint(
&self,
checkpoint_task_request: CheckpointTaskRequest,
) -> impl Future<Output = Result<()>> + Send { ... }
fn kill(
&self,
kill_request: KillRequest,
) -> impl Future<Output = Result<()>> + Send { ... }
fn exec(
&self,
exec_process_request: ExecProcessRequest,
) -> impl Future<Output = Result<()>> + Send { ... }
fn resize_pty(
&self,
resize_pty_request: ResizePtyRequest,
) -> impl Future<Output = Result<()>> + Send { ... }
fn close_io(
&self,
close_io_request: CloseIoRequest,
) -> impl Future<Output = Result<()>> + Send { ... }
fn update(
&self,
update_task_request: UpdateTaskRequest,
) -> impl Future<Output = Result<()>> + Send { ... }
fn wait(
&self,
wait_request: WaitRequest,
) -> impl Future<Output = Result<WaitResponse>> + Send { ... }
fn stats(
&self,
stats_request: StatsRequest,
) -> impl Future<Output = Result<StatsResponse>> + Send { ... }
fn connect(
&self,
connect_request: ConnectRequest,
) -> impl Future<Output = Result<ConnectResponse>> + Send { ... }
fn shutdown(
&self,
shutdown_request: ShutdownRequest,
) -> impl Future<Output = Result<()>> + Send { ... }
fn cleanup(
&self,
cleanup_request: CleanupRequest,
) -> impl Future<Output = Result<DeleteResponse>> + Send { ... }
fn version(
&self,
(): (),
) -> impl Future<Output = Result<VersionResponse>> + Send { ... }
}
Expand description
Shim service is launched for each container and is responsible for owning the IO for the container and its additional processes. The shim is also the parent of each container and allows reattaching to the IO and receiving the exit status for the container processes.
Provided Methods§
fn state( &self, state_request: StateRequest, ) -> impl Future<Output = Result<StateResponse>> + Send
fn create( &self, create_task_request: CreateTaskRequest, ) -> impl Future<Output = Result<CreateTaskResponse>> + Send
fn start( &self, start_request: StartRequest, ) -> impl Future<Output = Result<StartResponse>> + Send
fn delete( &self, delete_request: DeleteRequest, ) -> impl Future<Output = Result<DeleteResponse>> + Send
fn pids( &self, pids_request: PidsRequest, ) -> impl Future<Output = Result<PidsResponse>> + Send
fn pause( &self, pause_request: PauseRequest, ) -> impl Future<Output = Result<()>> + Send
fn resume( &self, resume_request: ResumeRequest, ) -> impl Future<Output = Result<()>> + Send
fn checkpoint( &self, checkpoint_task_request: CheckpointTaskRequest, ) -> impl Future<Output = Result<()>> + Send
fn kill( &self, kill_request: KillRequest, ) -> impl Future<Output = Result<()>> + Send
fn exec( &self, exec_process_request: ExecProcessRequest, ) -> impl Future<Output = Result<()>> + Send
fn resize_pty( &self, resize_pty_request: ResizePtyRequest, ) -> impl Future<Output = Result<()>> + Send
fn close_io( &self, close_io_request: CloseIoRequest, ) -> impl Future<Output = Result<()>> + Send
fn update( &self, update_task_request: UpdateTaskRequest, ) -> impl Future<Output = Result<()>> + Send
fn wait( &self, wait_request: WaitRequest, ) -> impl Future<Output = Result<WaitResponse>> + Send
fn stats( &self, stats_request: StatsRequest, ) -> impl Future<Output = Result<StatsResponse>> + Send
fn connect( &self, connect_request: ConnectRequest, ) -> impl Future<Output = Result<ConnectResponse>> + Send
fn shutdown( &self, shutdown_request: ShutdownRequest, ) -> impl Future<Output = Result<()>> + Send
fn cleanup( &self, cleanup_request: CleanupRequest, ) -> impl Future<Output = Result<DeleteResponse>> + Send
fn version( &self, (): (), ) -> impl Future<Output = Result<VersionResponse>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.