tev_client

Crates.iotev_client
lib.rstev_client
version0.5.2
sourcesrc
created_at2021-03-15 02:57:15.035474
updated_at2022-01-02 13:06:26.547796
descriptionAn IPC TCP client for tev
homepage
repositoryhttps://github.com/KarelPeeters/tev_client
max_upload_size
id369032
size16,058
KarelPeeters (KarelPeeters)

documentation

README

tev-client

Crates.io

This Rust crate implements a IPC TCP client for tev. It enables programmatic control of the images displayed by tev using a convenient and safe Rust api.

Supports all existing tev commands:

Example code:

use tev_client::{TevClient, TevError, PacketCreateImage};

fn main() -> Result<(), TevError> {
    // Spawn a tev instance, this command assumes tev is on the PATH.
    // There are other constructors available too, see TevClient::spawn and TevClient::wrap.
    let mut client = TevClient::spawn_path_default()?;

    // Create a new image
    client.send(PacketCreateImage {
        image_name: "test",
        grab_focus: false,
        width: 1920,
        height: 1080,
        channel_names: &["R", "G", "B"],
    })?;

    Ok(())
}
Commit count: 19

cargo fmt