docs: complete remaining core module docs

This commit is contained in:
Christian Visintin
2026-04-19 01:54:46 +05:30
parent 7e10b8e68b
commit d60c5007f9
3 changed files with 15 additions and 0 deletions
+5
View File
@@ -1,3 +1,8 @@
//! ## Parser Port Helpers
//!
//! Shared helpers for resolving default protocol ports and parsing explicit
//! port captures from remote connection strings.
use crate::filetransfer::FileTransferProtocol;
pub(super) fn default_port_for_protocol(protocol: FileTransferProtocol) -> u16 {
+5
View File
@@ -1,3 +1,8 @@
//! ## Parser Protocol Helpers
//!
//! Detects the protocol prefix for remote connection strings and returns the
//! remaining address payload.
use std::str::FromStr;
use super::REMOTE_OPT_PROTOCOL_REGEX;