/// Returns a string slice representation of the enum variant name for use
/// e.g. as a metric label.
Returns a string slice representation of the enum variant name for use
e.g. as a metric label.
Returns a string slice representation of the enum variant name for use e . g . as a metric label .
pub fn as_str(&self) -> &'static str {
        match self {
            HypervisorError::FunctionNotFound(..) => "FunctionNotFound",
            HypervisorError::MethodNotFound(_) => "MethodNotFound",
            HypervisorError::ContractViolation(_) => "ContractViolation",
            HypervisorError::InstructionLimitExceeded => "InstructionsLimitExceeded",
            HypervisorError::InvalidWasm(_) => "InvalidWasm",
            HypervisorError::InstrumentationFailed(_) => "InstrumentationFailed",
            HypervisorError::Trapped(_) => "Trapped",
            HypervisorError::CalledTrap(_) => "CalledTrap",
            HypervisorError::WasmModuleNotFound => "WasmModuleNotFound",
            HypervisorError::OutOfMemory => "OutOfMemory",
            HypervisorError::CanisterStopped => "CanisterStopped",
            HypervisorError::InsufficientCyclesInCall { .. } => "InsufficientCyclesInCall",
            HypervisorError::InvalidPrincipalId(_) => "InvalidPrincipalId",
            HypervisorError::InvalidCanisterId(_) => "InvalidCanisterId",
            HypervisorError::MessageRejected => "MessageRejected",
            HypervisorError::InsufficientCyclesBalance { .. } => "InsufficientCyclesBalance",
            HypervisorError::Cleanup { .. } => "Cleanup",
            HypervisorError::WasmEngineError(_) => "WasmEngineError",
        }
    }
pub fn as_str ( & self ) -> & ' static str { match self { HypervisorError :: FunctionNotFound ( .. ) => " " , HypervisorError :: MethodNotFound ( _ ) => " " , HypervisorError :: ContractViolation ( _ ) => " " , HypervisorError :: InstructionLimitExceeded => " " , HypervisorError :: InvalidWasm ( _ ) => " " , HypervisorError :: InstrumentationFailed ( _ ) => " " , HypervisorError :: Trapped ( _ ) => " " , HypervisorError :: CalledTrap ( _ ) => " " , HypervisorError :: WasmModuleNotFound => " " , HypervisorError :: OutOfMemory => " " , HypervisorError :: CanisterStopped => " " , HypervisorError :: InsufficientCyclesInCall { .. } => " " , HypervisorError :: InvalidPrincipalId ( _ ) => " " , HypervisorError :: InvalidCanisterId ( _ ) => " " , HypervisorError :: MessageRejected => " " , HypervisorError :: InsufficientCyclesBalance { .. } => " " , HypervisorError :: Cleanup { .. } => " " , HypervisorError :: WasmEngineError ( _ ) => " " , } }
Returns a string slice representation of the enum variant name for use
e.g.
Returns a string slice representation of the enum variant name for use e . g .
&self