pub const DEFAULT_LINK_PROTOCOLS: &[u32];Expand description
Default link protocol versions supported for relay connections.
These are the link protocol versions that will be offered during connection negotiation if no specific versions are provided. The highest mutually supported version will be selected.
Currently supports versions 3, 4, and 5 as defined in tor-spec.txt.
ยงExample
use stem_rs::client::{Relay, DEFAULT_LINK_PROTOCOLS};
// Use default protocols
let relay = Relay::connect("127.0.0.1", 9001, DEFAULT_LINK_PROTOCOLS).await?;
// Or specify custom protocols
let relay = Relay::connect("127.0.0.1", 9001, &[4, 5]).await?;