Enum url_prefix::Protocol [−][src]
A set of protocols for URLs.
Variants
HTTP
HTTPS
FTP
Custom(String, u16)
Your own custom protocol created by giving a name and a default port number.
Methods
impl Protocol
[src]
impl Protocol
pub fn get_default_from_string(s: String) -> Option<Self>
[src]
pub fn get_default_from_string(s: String) -> Option<Self>
pub fn get_default_from_str(s: &str) -> Option<Self>
[src]
pub fn get_default_from_str(s: &str) -> Option<Self>
pub fn get_default_port(&self) -> u16
[src]
pub fn get_default_port(&self) -> u16
pub fn get_name(&self) -> &str
[src]
pub fn get_name(&self) -> &str