tekhsi_rs 0.1.1

High-performance client for Tektronix TekHSI enabled oscilloscopes
Documentation
#[derive(Clone)]
pub(super) struct SymbolClients {
    pub symbol: smol_str::SmolStr,
    pub header_client:
        crate::tekscope::native_data_client::NativeDataClient<crate::tekscope::ClientChannel>,
    pub data_client:
        crate::tekscope::native_data_client::NativeDataClient<crate::tekscope::ClientChannel>,
}

impl SymbolClients {
    pub(super) fn new(
        symbol: smol_str::SmolStr,
        client_name: smol_str::SmolStr,
        channel: tonic::transport::Channel,
    ) -> Self {
        Self {
            symbol,
            header_client: crate::tekscope::new_native_data_client(channel.clone(), &client_name),
            data_client: crate::tekscope::new_native_data_client(channel, &client_name),
        }
    }
}