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,
rules: ParseRule
) -> SshParserResult<Self>
pub fn parse( self, reader: &mut impl BufRead, rules: ParseRule ) -> SshParserResult<Self>
Parse stream and return parsed configuration or parser error
sourcepub fn parse_default_file(rules: ParseRule) -> SshParserResult<Self>
pub fn parse_default_file(rules: ParseRule) -> SshParserResult<Self>
Parse ~/.ssh/config file and return parsed configuration or parser error
pub fn get_hosts(&self) -> &Vec<Host>
Trait Implementations§
source§impl PartialEq<SshConfig> for SshConfig
impl PartialEq<SshConfig> for SshConfig
impl Eq for SshConfig
impl StructuralEq for SshConfig
impl StructuralPartialEq for SshConfig
Auto Trait Implementations§
impl RefUnwindSafe for SshConfig
impl Send for SshConfig
impl Sync for SshConfig
impl Unpin for SshConfig
impl UnwindSafe for SshConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more