mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-18 05:41:50 +01:00
update actix
This commit is contained in:
parent
5e54a80064
commit
da79981d90
@ -49,9 +49,9 @@ tokio-proto = "0.1"
|
||||
# h2 = { git = 'https://github.com/carllerche/h2', optional = true }
|
||||
|
||||
[dependencies.actix]
|
||||
version = "0.3"
|
||||
#version = "0.3"
|
||||
#path = "../actix"
|
||||
#git = "https://github.com/actix/actix.git"
|
||||
git = "https://github.com/actix/actix.git"
|
||||
default-features = false
|
||||
features = []
|
||||
|
||||
|
@ -241,13 +241,14 @@ impl<A> Stream for HttpContext<A> where A: Actor<Context=Self> + Route
|
||||
}
|
||||
}
|
||||
|
||||
impl<A, M> ToEnvelope<A, M> for HttpContext<A>
|
||||
where A: Actor<Context=HttpContext<A>> + Route + Handler<M>,
|
||||
impl<A> ToEnvelope<A> for HttpContext<A>
|
||||
where A: Actor<Context=HttpContext<A>> + Route,
|
||||
{
|
||||
fn pack<M>(msg: M, tx: Option<Sender<Result<M::Item, M::Error>>>) -> Envelope<A>
|
||||
where A: Handler<M>,
|
||||
M: ResponseType + Send + 'static,
|
||||
M::Item: Send,
|
||||
M::Error: Send,
|
||||
{
|
||||
fn pack(msg: M, tx: Option<Sender<Result<M::Item, M::Error>>>) -> Envelope<A>
|
||||
M::Error: Send
|
||||
{
|
||||
RemoteEnvelope::new(msg, tx).into()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user