mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-27 21:22:57 +01:00
Merge pull request #16 from boustrophedon/derive_debug
Derive debug for Server and ServerCommand
This commit is contained in:
commit
0a2a520c35
@ -5,6 +5,7 @@ use futures::Future;
|
|||||||
use crate::builder::ServerBuilder;
|
use crate::builder::ServerBuilder;
|
||||||
use crate::signals::Signal;
|
use crate::signals::Signal;
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub(crate) enum ServerCommand {
|
pub(crate) enum ServerCommand {
|
||||||
WorkerDied(usize),
|
WorkerDied(usize),
|
||||||
Pause(oneshot::Sender<()>),
|
Pause(oneshot::Sender<()>),
|
||||||
@ -17,7 +18,7 @@ pub(crate) enum ServerCommand {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct Server(UnboundedSender<ServerCommand>);
|
pub struct Server(UnboundedSender<ServerCommand>);
|
||||||
|
|
||||||
impl Server {
|
impl Server {
|
||||||
|
Loading…
Reference in New Issue
Block a user