add constraints

This commit is contained in:
Nikolay Kim 2018-09-27 21:45:40 -07:00
parent a2245c1751
commit 1745a575a5
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ pub struct OpensslAcceptor<T> {
io: PhantomData<T>,
}
impl<T> OpensslAcceptor<T> {
impl<T: AsyncRead + AsyncWrite> OpensslAcceptor<T> {
/// Create default `OpensslAcceptor`
pub fn new(acceptor: SslAcceptor) -> Self {
OpensslAcceptor {