pub fn bind_expert<A: ToSocketAddrs>(addr: A, key: &str, cert: &str, method: Option<SslMethod>, opts: Option<SslContextOptions>, cipher_list: Option<String>) -> Result<TlsTcpListener> {
        let sockaddr = try!(addr.to_socket_addrs()).next().unwrap();
        // create listener
        let listener = try!(TcpListener::bind(&sockaddr));
        let ctx = try!(new_ssl_context(&key, &cert, method, opts, cipher_list));
        Ok(TlsTcpListener {
            listener: listener,
            ctx: ctx,
        })
    }
//new expert bind methode => gives additional options to define sslmethode, ssloptions, and list of ciphers to use
new expert bind methode => gives additional options to define sslmethode, ssloptions, and list of ciphers to use
new expert bind methode = > gives additional options to define sslmethode ssloptions and list of ciphers to use
pub fn bind_expert<A: ToSocketAddrs>(addr: A, key: &str, cert: &str, method: Option<SslMethod>, opts: Option<SslContextOptions>, cipher_list: Option<String>) -> Result<TlsTcpListener> {
        let sockaddr = try!(addr.to_socket_addrs()).next().unwrap();
        // create listener
        let listener = try!(TcpListener::bind(&sockaddr));
        let ctx = try!(new_ssl_context(&key, &cert, method, opts, cipher_list));
        Ok(TlsTcpListener {
            listener: listener,
            ctx: ctx,
        })
    }
pub fn bind_expert < A : ToSocketAddrs > ( addr : A , key : & str , cert : & str , method : Option < SslMethod > , opts : Option < SslContextOptions > , cipher_list : Option < String > ) -> Result < TlsTcpListener > { let sockaddr = try ! ( addr to_socket_addrs ( ) ) . next ( ) . unwrap ( ) ; // create listener let listener = try ! ( TcpListener bind ( sockaddr ) ) ; let ctx = try ! ( new_ssl_context ( key cert method opts cipher_list ) ) ; Ok ( TlsTcpListener { listener : listener , ctx : ctx , } ) }
new expert bind methode => gives additional options to define sslmethode, ssloptions, and list of ciphers to use
new expert bind methode = > gives additional options to define sslmethode ssloptions and list of ciphers to use
addr
A
key
&str
cert
&str
method
Option<SslMethod>
opts
Option<SslContextOptions>
cipher_list
Option<String>
addr
A
key
&str
cert
&str
method
Option<SslMethod>
opts
Option<SslContextOptions>
cipher_list
Option<String>