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> { ... }
}