MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / from

Method from

crates/openshell-core/src/error.rs:128–135  ·  view source on GitHub ↗
(err: ComputeDriverError)

Source from the content-addressed store, hash-verified

126
127impl From<ComputeDriverError> for tonic::Status {
128 fn from(err: ComputeDriverError) -> Self {
129 match err {
130 ComputeDriverError::AlreadyExists => Self::already_exists("sandbox already exists"),
131 ComputeDriverError::InvalidArgument(m) => Self::invalid_argument(m),
132 ComputeDriverError::Precondition(m) => Self::failed_precondition(m),
133 ComputeDriverError::Message(m) => Self::internal(m),
134 }
135 }
136}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected