mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-27 22:32:57 +01:00
add constraints
This commit is contained in:
parent
a2245c1751
commit
1745a575a5
@ -18,7 +18,7 @@ pub struct OpensslAcceptor<T> {
|
|||||||
io: PhantomData<T>,
|
io: PhantomData<T>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T> OpensslAcceptor<T> {
|
impl<T: AsyncRead + AsyncWrite> OpensslAcceptor<T> {
|
||||||
/// Create default `OpensslAcceptor`
|
/// Create default `OpensslAcceptor`
|
||||||
pub fn new(acceptor: SslAcceptor) -> Self {
|
pub fn new(acceptor: SslAcceptor) -> Self {
|
||||||
OpensslAcceptor {
|
OpensslAcceptor {
|
||||||
|
Loading…
Reference in New Issue
Block a user