Struct ssh_transfer::Configuration[][src]

pub struct Configuration {
    pub hostname: String,
    pub port: u16,
    pub username: String,
    pub authentication: AuthenticationType,
    pub timeout: u32,
    pub compress: bool,
    pub trust_host: bool,
}

Fields

hostname: Stringport: u16username: Stringauthentication: AuthenticationTypetimeout: u32compress: booltrust_host: bool

Implementations

impl Configuration[src]

pub fn new(hostname: &str) -> Self[src]

pub fn with_port(self, port: u16) -> Self[src]

pub fn with_username(self, username: &str) -> Self[src]

pub fn with_authentication(self, authentication: AuthenticationType) -> Self[src]

pub fn with_timeout_ms(self, timeout: u32) -> Self[src]

pub fn with_compression(self, compress: bool) -> Self[src]

pub fn with_host_trust(self, trust_host: bool) -> Self[src]

Trait Implementations

impl Clone for Configuration[src]

impl Debug for Configuration[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.