pub fn is_valid_stream_id(s: &str) -> boolExpand description
Validates a stream identifier.
Stream IDs are numeric strings used to identify streams in the
Tor control protocol. This function has the same validation rules
as is_valid_circuit_id.
§Arguments
s- The string to validate
§Returns
true if the string is a valid stream ID, false otherwise.
§Example
use stem_rs::util::is_valid_stream_id;
assert!(is_valid_stream_id("1"));
assert!(is_valid_stream_id("456"));
assert!(!is_valid_stream_id("")); // Empty
assert!(!is_valid_stream_id("xyz")); // Non-numeric