fetchlib 0.0.13

A lib for remote server connection through ssh
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
macro_rules! remote_secure_shell_channel_close {
    ($remote_channel:expr) => {{
        if let Err(e) = $remote_channel.send_eof() {
            Some(e)
        } else if let Err(e) = $remote_channel.wait_eof() {
            Some(e)
        } else if let Err(e) = $remote_channel.close() {
            Some(e)
        } else if let Err(e) = $remote_channel.wait_close() {
            Some(e)
        } else {
            None
        }
    }};
}

pub(crate) use remote_secure_shell_channel_close;