(err: ComputeDriverError)
| 126 | |
| 127 | impl 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected