teleop

Crates.ioteleop
lib.rsteleop
version0.2.0
created_at2025-10-02 16:29:28.35978+00
updated_at2025-11-04 18:19:35.654887+00
descriptionTeleoperate Rust Processes
homepage
repositoryhttps://github.com/arnodb/teleop
max_upload_size
id1864632
size52,692
Arnaud de Bossoreille (arnodb)

documentation

https://docs.rs/teleop

README

Teleop

Latest Version Documentation Build Status Code Coverage

Teleop provides a means to attach to a local process knowing its ID, and then provides RPC capabilities to the client.

It currently only supports UNIX socket and Cap’n Proto RPC, but it is aimed at providing more ways to attach to a process and to communicate with it.

UNIX socket

The implementation is very much inspired by Java Attach API:

  • the process to be teleoperated waits for a signal
  • if some conditions are met then it opens the UNIX socket at a known location
  • the client can then connect to the unix socket and use the RPC protocol set up by the remote process

Cap'n Proto RPC

Teleop provides a root interface named Teleop (see teleop.capnp) which gives access to arbitrary services.

Example

  • server.rs shows how to setup the process to teleoperate, including an echo service which will reply to a request by echoing the input.
  • client.rs shows how to setup the client, initiate the attach process, request the echo service, and send echo requests.
Commit count: 0

cargo fmt