API Docs (docs.rs)
API Docs (docs.rs)
Crate API structure and types
KSP is distributed as a lightweight, safe Rust library. The primary API provides asynchronous bindings built on top of tokio.
Core API Structure
The public surface of the crate exposes three main items:
KspServer: Binds to a local port, accepts raw TCP sockets, performs handshakes, and manages multiple parallel stream queues.KspClient: Initiates the secure connection, verifies server certificates, and opens logical streams.SessionConfig: Struct configuring connection parameters, timeout values, keepalive rate, and allowed cipher selections.
For standard API document generation, checkout the official cargo documentation. You can open them locally by running cargo doc --open in the workspace, or visit the crates.io repository.