Skip to Content
New: a threat-model-first guide to choosing your network defence, plus the nym-smoldvpn dVPN package and nym-swizzle sender hygiene.

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