tls-async 0.3.0-alpha.7

TLS support for AsyncRead/AsyncWrite using native-tls
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use failure::Fail;

#[derive(Debug, Fail)]
pub enum Error {
    #[fail(display="NativeTls Acceptor Error")]
    Acceptor(#[cause] native_tls::Error),
    #[fail(display="NativeTls Connector Error")]
    Connector(#[cause] native_tls::Error),
    #[fail(display="Error during handshake")]
    Handshake(#[cause] native_tls::Error),
    #[fail(display="NativeTls Error")]
    Native(#[cause] native_tls::Error),
    #[fail(display="Cannot repeat handshake")]
    RepeatedHandshake,
}

unsafe impl Sync for Error {}
unsafe impl Send for Error {}