Trait Task

Source
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§

Source

fn state( &self, state_request: StateRequest, ) -> impl Future<Output = Result<StateResponse>> + Send

Source

fn create( &self, create_task_request: CreateTaskRequest, ) -> impl Future<Output = Result<CreateTaskResponse>> + Send

Source

fn start( &self, start_request: StartRequest, ) -> impl Future<Output = Result<StartResponse>> + Send

Source

fn delete( &self, delete_request: DeleteRequest, ) -> impl Future<Output = Result<DeleteResponse>> + Send

Source

fn pids( &self, pids_request: PidsRequest, ) -> impl Future<Output = Result<PidsResponse>> + Send

Source

fn pause( &self, pause_request: PauseRequest, ) -> impl Future<Output = Result<()>> + Send

Source

fn resume( &self, resume_request: ResumeRequest, ) -> impl Future<Output = Result<()>> + Send

Source

fn checkpoint( &self, checkpoint_task_request: CheckpointTaskRequest, ) -> impl Future<Output = Result<()>> + Send

Source

fn kill( &self, kill_request: KillRequest, ) -> impl Future<Output = Result<()>> + Send

Source

fn exec( &self, exec_process_request: ExecProcessRequest, ) -> impl Future<Output = Result<()>> + Send

Source

fn resize_pty( &self, resize_pty_request: ResizePtyRequest, ) -> impl Future<Output = Result<()>> + Send

Source

fn close_io( &self, close_io_request: CloseIoRequest, ) -> impl Future<Output = Result<()>> + Send

Source

fn update( &self, update_task_request: UpdateTaskRequest, ) -> impl Future<Output = Result<()>> + Send

Source

fn wait( &self, wait_request: WaitRequest, ) -> impl Future<Output = Result<WaitResponse>> + Send

Source

fn stats( &self, stats_request: StatsRequest, ) -> impl Future<Output = Result<StatsResponse>> + Send

Source

fn connect( &self, connect_request: ConnectRequest, ) -> impl Future<Output = Result<ConnectResponse>> + Send

Source

fn shutdown( &self, shutdown_request: ShutdownRequest, ) -> impl Future<Output = Result<()>> + Send

Source

fn cleanup( &self, cleanup_request: CleanupRequest, ) -> impl Future<Output = Result<DeleteResponse>> + Send

Source

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.

Implementations on Foreign Types§

Source§

impl Task for Client

Source§

fn state( &self, state_request: StateRequest, ) -> impl Future<Output = Result<StateResponse>> + Send

Source§

fn create( &self, create_task_request: CreateTaskRequest, ) -> impl Future<Output = Result<CreateTaskResponse>> + Send

Source§

fn start( &self, start_request: StartRequest, ) -> impl Future<Output = Result<StartResponse>> + Send

Source§

fn delete( &self, delete_request: DeleteRequest, ) -> impl Future<Output = Result<DeleteResponse>> + Send

Source§

fn pids( &self, pids_request: PidsRequest, ) -> impl Future<Output = Result<PidsResponse>> + Send

Source§

fn pause( &self, pause_request: PauseRequest, ) -> impl Future<Output = Result<()>> + Send

Source§

fn resume( &self, resume_request: ResumeRequest, ) -> impl Future<Output = Result<()>> + Send

Source§

fn checkpoint( &self, checkpoint_task_request: CheckpointTaskRequest, ) -> impl Future<Output = Result<()>> + Send

Source§

fn kill( &self, kill_request: KillRequest, ) -> impl Future<Output = Result<()>> + Send

Source§

fn exec( &self, exec_process_request: ExecProcessRequest, ) -> impl Future<Output = Result<()>> + Send

Source§

fn resize_pty( &self, resize_pty_request: ResizePtyRequest, ) -> impl Future<Output = Result<()>> + Send

Source§

fn close_io( &self, close_io_request: CloseIoRequest, ) -> impl Future<Output = Result<()>> + Send

Source§

fn update( &self, update_task_request: UpdateTaskRequest, ) -> impl Future<Output = Result<()>> + Send

Source§

fn wait( &self, wait_request: WaitRequest, ) -> impl Future<Output = Result<WaitResponse>> + Send

Source§

fn stats( &self, stats_request: StatsRequest, ) -> impl Future<Output = Result<StatsResponse>> + Send

Source§

fn connect( &self, connect_request: ConnectRequest, ) -> impl Future<Output = Result<ConnectResponse>> + Send

Source§

fn shutdown( &self, shutdown_request: ShutdownRequest, ) -> impl Future<Output = Result<()>> + Send

Source§

fn cleanup( &self, cleanup_request: CleanupRequest, ) -> impl Future<Output = Result<DeleteResponse>> + Send

Source§

fn version( &self, (): (), ) -> impl Future<Output = Result<VersionResponse>> + Send

Implementors§