[][src]Struct nbssh::SshParams

pub struct SshParams {
    pub address: Address,
    pub identity: Option<PathBuf>,
    pub user: Option<String>,
    pub strict_host_key_checking: bool,

Inputs for an SSH command, excluding the remote command itself.


address: Address

Target address.

identity: Option<PathBuf>

Optional identity path ("-i" option).

user: Option<String>

Target user name.

strict_host_key_checking: bool

If false, skip the known-host check and do not add the target to the known-hosts file. This is useful, for example, with ephemeral VMs.

Setting this to false adds these flags:

  1. -oStrictHostKeyChecking=no
  2. -oUserKnownHostsFile=/dev/null


impl SshParams[src]

pub fn command<S: AsRef<OsStr>>(&self, args: &[S]) -> Vec<OsString>[src]

Create a full SSH command.

Trait Implementations

impl Clone for SshParams[src]

impl Debug for SshParams[src]

impl Default for SshParams[src]

impl Eq for SshParams[src]

impl PartialEq<SshParams> for SshParams[src]

impl StructuralEq for SshParams[src]

impl StructuralPartialEq for SshParams[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.