Struct ssh2_config::SshConfig
source · pub struct SshConfig { /* private fields */ }Expand description
Describes the ssh configuration. Configuration is describes in this document: http://man.openbsd.org/OpenBSD-current/man5/ssh_config.5
Implementations§
source§impl SshConfig
impl SshConfig
sourcepub fn query<S: AsRef<str>>(&self, host: S) -> HostParams
pub fn query<S: AsRef<str>>(&self, host: S) -> HostParams
Query params for a certain host
sourcepub fn default_params(&self) -> HostParams
pub fn default_params(&self) -> HostParams
Get default params
sourcepub fn parse(self, reader: &mut impl BufRead) -> SshParserResult<Self>
pub fn parse(self, reader: &mut impl BufRead) -> SshParserResult<Self>
Parse stream and return parsed configuration or parser error