mirror of
https://github.com/actix/actix-web.git
synced 2025-01-20 05:58:08 +00:00
add constraints
This commit is contained in:
parent
a2245c1751
commit
1745a575a5
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue