// SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. // SPDX-License-Identifier: Apache-2.0 pub trait DiscoveryContext { fn env_var(&self, key: &str) -> Option; } pub struct RealDiscoveryContext; impl DiscoveryContext for RealDiscoveryContext { fn env_var(&self, key: &str) -> Option { std::env::var(key).ok() } }