nemo-relay 0.7.0

Core Rust SDK for NeMo Relay observability, scope management, and runtime instrumentation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

use std::future::Future;
use std::pin::Pin;

pub fn ready<T: Send + 'static>(
    value: T,
) -> Pin<Box<dyn Future<Output = nemo_relay::error::Result<T>> + Send>> {
    Box::pin(async move { Ok(value) })
}

#[allow(dead_code)]
pub fn ready_result<T: Send + 'static>(
    value: nemo_relay::error::Result<T>,
) -> Pin<Box<dyn Future<Output = nemo_relay::error::Result<T>> + Send>> {
    Box::pin(async move { value })
}