[][src]Struct ssh_tools::Tunnel

pub struct Tunnel { /* fields omitted */ }

Methods

impl Tunnel[src]

pub fn new(ssh_host: &str, ssh_port: u64) -> Self[src]

pub fn open(
    &mut self,
    local_port: u64,
    remote_port: u64
) -> Result<(), SshError>
[src]

pub fn close(self) -> Result<(), SshError>[src]

Trait Implementations

impl Debug for Tunnel[src]

Auto Trait Implementations

impl Unpin for Tunnel

impl Send for Tunnel

impl Sync for Tunnel

impl RefUnwindSafe for Tunnel

impl UnwindSafe for Tunnel

Blanket Implementations

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

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

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.

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

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

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