truston 0.1.1

A high-performance Rust client library for NVIDIA Triton Inference Server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use tokio;
use truston::client::triton_client::TritonRestClient;
use truston::init_tracing;

#[tokio::main]
async fn main() {
    init_tracing();

    let my_client = TritonRestClient::new("http://localhost:50000");
    let is_alive = my_client.is_server_live().await;
    match is_alive {
        Ok(_) => println!("Server is live!"),
        Err(e) => println!("error: {:#?}", e),
    }
}