1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-23 22:51:07 +01:00

update examples

This commit is contained in:
Nikolay Kim 2018-09-11 10:55:49 -07:00
parent 82b71d91ea
commit b0d120c101
2 changed files with 5 additions and 2 deletions

View File

@ -20,7 +20,8 @@ use openssl::ssl::{SslAcceptor, SslFiletype, SslMethod};
use tokio_io::{AsyncRead, AsyncWrite};
use tokio_openssl::SslAcceptorExt;
use actix_net::{IntoNewService, NewServiceExt, Server};
use actix_net::server::Server;
use actix_net::service::{IntoNewService, NewServiceExt};
/// Simple logger service, it just prints fact of the new connections
fn logger<T: AsyncRead + AsyncWrite + fmt::Debug>(

View File

@ -14,7 +14,9 @@ use futures::{future, Future};
use openssl::ssl::{SslAcceptor, SslFiletype, SslMethod};
use tokio_io::{AsyncRead, AsyncWrite};
use actix_net::{ssl, NewServiceExt, Server};
use actix_net::server::Server;
use actix_net::service::NewServiceExt;
use actix_net::ssl;
#[derive(Debug)]
struct ServiceState {