Skip to Content
19 November 2026: gateway operators, apply the nginx2root CVE mitigation.

Examples

Runnable examples in sdk/rust/nym-sdk/examples/. Each file is self-contained with step-by-step comments.

cargo run --example <name>
ExampleSourceWhat it demonstrates
Simple Read/Writestream_simple_read_write.rsMultiple concurrent streams, bidirectional communication
Idle Timeoutstream_idle_timeout.rsConfiguring with_stream_idle_timeout, observing EOF after cleanup
Mode Guardstream_mode_guard.rsMutual exclusion between stream and message modes
Throughputstream_throughput.rsSending 1 MB over a single stream, verifying data integrity
Last updated on