Skip to main content

get_titles

Function get_titles 

Source
pub fn get_titles(fqdn: bool) -> (String, String)
Expand description

Return (username, hostname, combined length) as a tuple.

FQDN is passed to get_hostname to determine whether to include the domain.

The length is the sum of the lengths of the username and hostname, plus one for the ‘@’ separator.