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 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§
impl Eq for SshConfig
impl StructuralPartialEq for SshConfig
Auto Trait Implementations§
impl Freeze for SshConfig
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