MCPcopy Create free account
hub / github.com/elastio/devx / Context

Interface Context

devx-cmd/src/error.rs:13–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11impl std::error::Error for Error {}
12
13pub(crate) trait Context<T> {
14 fn cmd_context(self, cmd: &Cmd) -> Result<T>;
15 fn proc_context(self, proc: &Child) -> Result<T>;
16}
17impl<T, E: fmt::Display> Context<T> for Result<T, E> {
18 fn cmd_context(self, cmd: &Cmd) -> Result<T> {
19 self.map_err(|err| Error::cmd(cmd, &err))

Callers

nothing calls this directly

Implementers 1

error.rsdevx-cmd/src/error.rs

Calls

no outgoing calls

Tested by

no test coverage detected