twinleaf-tools 2.3.0

Tools for the Twinleaf I/O protocol for reading data from Twinleaf quantum sensors.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use clap::{Args, ValueHint};
use std::time::Duration;

use crate::TioOpts;

#[derive(Args, Debug)]
pub struct CaptureCli {
    #[command(flatten)]
    pub tio: TioOpts,

    /// Capture RPC name to execute
    #[arg(default_value = "test.capture", value_hint = ValueHint::Other)]
    pub rpc_name: String,

    /// Maximum time to wait for capture data
    #[arg(long, default_value = "5s", value_parser = humantime::parse_duration)]
    pub timeout: Duration,
}