1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-27 18:02:58 +01:00

Derive debug for Server and ServerCommand

This commit is contained in:
Harry Stern 2019-05-02 01:31:04 -04:00
parent 91e28a4312
commit b0c37dfc87
No known key found for this signature in database
GPG Key ID: 1429C9C6822553C5

View File

@ -5,6 +5,7 @@ use futures::Future;
use crate::builder::ServerBuilder;
use crate::signals::Signal;
#[derive(Debug)]
pub(crate) enum ServerCommand {
WorkerDied(usize),
Pause(oneshot::Sender<()>),
@ -17,7 +18,7 @@ pub(crate) enum ServerCommand {
},
}
#[derive(Clone)]
#[derive(Debug, Clone)]
pub struct Server(UnboundedSender<ServerCommand>);
impl Server {