pub struct Settings {
pub user: Option<String>,
pub hostname: Option<String>,
pub port: Option<u16>,
pub proxy_jump: Option<String>,
}Expand description
What OpenSSH resolves a host to, for showing beside it.
Every field is whatever ssh -G said, which is the only answer that matches what the
transport will actually do. Parsing the config for these would mean reimplementing
first-match-wins, Match blocks and canonicalisation, and being subtly wrong about a
host the user can see is configured correctly.
Fields§
§user: Option<String>§hostname: Option<String>§port: Option<u16>§proxy_jump: Option<String>Trait Implementations§
impl Eq for Settings
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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