mitoxide-proto 0.1.0

Protocol definitions and codec for Mitoxide
Documentation

Mitoxide Proto

Crates.io Documentation License: MIT

Protocol definitions and codec for Mitoxide - a fast Rust library for remote execution and automation.

Features

  • Efficient binary protocol with MessagePack
  • Frame-based communication
  • Request/response correlation
  • Stream multiplexing support
  • Zero-copy serialization where possible

Usage

This crate is primarily used internally by Mitoxide, but can be used standalone for custom protocol implementations.

use mitoxide_proto::{Message, Request, Response, Frame, FrameCodec};

// Create a request message
let request = Request::ProcExec {
    id: uuid::Uuid::new_v4(),
    command: vec!["echo".to_string(), "hello".to_string()],
    env: std::collections::HashMap::new(),
    timeout: None,
};

let message = Message::Request(request);

Documentation

License

This project is licensed under the MIT License.