Merge pull request #30 from amousset/comply-with-rfc1214

Comply with RFC1214
This commit is contained in:
Alexis Mousset
2015-10-30 17:29:01 +01:00

View File

@@ -9,7 +9,7 @@ use std::fmt::{Debug, Formatter};
use openssl::ssl::{SslContext, SslStream};
/// A trait for the concept of opening a stream
pub trait Connector {
pub trait Connector: Sized {
/// Opens a connection to the given IP socket
fn connect(addr: &SocketAddr, ssl_context: Option<&SslContext>) -> io::Result<Self>;
/// Upgrades to TLS connection