Trait containerd_shim::Task

source ·
pub trait Task {
Show 17 methods // Provided methods fn state( &self, _ctx: &TtrpcContext, _: StateRequest ) -> Result<StateResponse, Error> { ... } fn create( &self, _ctx: &TtrpcContext, _: CreateTaskRequest ) -> Result<CreateTaskResponse, Error> { ... } fn start( &self, _ctx: &TtrpcContext, _: StartRequest ) -> Result<StartResponse, Error> { ... } fn delete( &self, _ctx: &TtrpcContext, _: DeleteRequest ) -> Result<DeleteResponse, Error> { ... } fn pids( &self, _ctx: &TtrpcContext, _: PidsRequest ) -> Result<PidsResponse, Error> { ... } fn pause( &self, _ctx: &TtrpcContext, _: PauseRequest ) -> Result<Empty, Error> { ... } fn resume( &self, _ctx: &TtrpcContext, _: ResumeRequest ) -> Result<Empty, Error> { ... } fn checkpoint( &self, _ctx: &TtrpcContext, _: CheckpointTaskRequest ) -> Result<Empty, Error> { ... } fn kill(&self, _ctx: &TtrpcContext, _: KillRequest) -> Result<Empty, Error> { ... } fn exec( &self, _ctx: &TtrpcContext, _: ExecProcessRequest ) -> Result<Empty, Error> { ... } fn resize_pty( &self, _ctx: &TtrpcContext, _: ResizePtyRequest ) -> Result<Empty, Error> { ... } fn close_io( &self, _ctx: &TtrpcContext, _: CloseIORequest ) -> Result<Empty, Error> { ... } fn update( &self, _ctx: &TtrpcContext, _: UpdateTaskRequest ) -> Result<Empty, Error> { ... } fn wait( &self, _ctx: &TtrpcContext, _: WaitRequest ) -> Result<WaitResponse, Error> { ... } fn stats( &self, _ctx: &TtrpcContext, _: StatsRequest ) -> Result<StatsResponse, Error> { ... } fn connect( &self, _ctx: &TtrpcContext, _: ConnectRequest ) -> Result<ConnectResponse, Error> { ... } fn shutdown( &self, _ctx: &TtrpcContext, _: ShutdownRequest ) -> Result<Empty, Error> { ... }
}

Provided Methods§

source

fn state( &self, _ctx: &TtrpcContext, _: StateRequest ) -> Result<StateResponse, Error>

source

fn create( &self, _ctx: &TtrpcContext, _: CreateTaskRequest ) -> Result<CreateTaskResponse, Error>

source

fn start( &self, _ctx: &TtrpcContext, _: StartRequest ) -> Result<StartResponse, Error>

source

fn delete( &self, _ctx: &TtrpcContext, _: DeleteRequest ) -> Result<DeleteResponse, Error>

source

fn pids( &self, _ctx: &TtrpcContext, _: PidsRequest ) -> Result<PidsResponse, Error>

source

fn pause(&self, _ctx: &TtrpcContext, _: PauseRequest) -> Result<Empty, Error>

source

fn resume(&self, _ctx: &TtrpcContext, _: ResumeRequest) -> Result<Empty, Error>

source

fn checkpoint( &self, _ctx: &TtrpcContext, _: CheckpointTaskRequest ) -> Result<Empty, Error>

source

fn kill(&self, _ctx: &TtrpcContext, _: KillRequest) -> Result<Empty, Error>

source

fn exec( &self, _ctx: &TtrpcContext, _: ExecProcessRequest ) -> Result<Empty, Error>

source

fn resize_pty( &self, _ctx: &TtrpcContext, _: ResizePtyRequest ) -> Result<Empty, Error>

source

fn close_io( &self, _ctx: &TtrpcContext, _: CloseIORequest ) -> Result<Empty, Error>

source

fn update( &self, _ctx: &TtrpcContext, _: UpdateTaskRequest ) -> Result<Empty, Error>

source

fn wait( &self, _ctx: &TtrpcContext, _: WaitRequest ) -> Result<WaitResponse, Error>

source

fn stats( &self, _ctx: &TtrpcContext, _: StatsRequest ) -> Result<StatsResponse, Error>

source

fn connect( &self, _ctx: &TtrpcContext, _: ConnectRequest ) -> Result<ConnectResponse, Error>

source

fn shutdown( &self, _ctx: &TtrpcContext, _: ShutdownRequest ) -> Result<Empty, Error>

Implementors§