1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2025-01-02 05:18:44 +00: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_io::{AsyncRead, AsyncWrite};
use tokio_openssl::SslAcceptorExt; 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 /// Simple logger service, it just prints fact of the new connections
fn logger<T: AsyncRead + AsyncWrite + fmt::Debug>( fn logger<T: AsyncRead + AsyncWrite + fmt::Debug>(

View file

@ -14,7 +14,9 @@ use futures::{future, Future};
use openssl::ssl::{SslAcceptor, SslFiletype, SslMethod}; use openssl::ssl::{SslAcceptor, SslFiletype, SslMethod};
use tokio_io::{AsyncRead, AsyncWrite}; 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)] #[derive(Debug)]
struct ServiceState { struct ServiceState {