mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-24 07:53:00 +01:00
update actix
This commit is contained in:
parent
55b2fb7f77
commit
715ec4ae2f
@ -125,7 +125,7 @@ impl Handler<ClientCommand> for ChatClient {
|
||||
|
||||
/// Server communication
|
||||
|
||||
impl FramedActor<TcpStream, codec::ClientChatCodec> for ChatClient {
|
||||
impl FramedHandler<TcpStream, codec::ClientChatCodec> for ChatClient {
|
||||
|
||||
fn handle(&mut self, msg: io::Result<codec::ChatResponse>, ctx: &mut Context<Self>) {
|
||||
match msg {
|
||||
|
@ -63,7 +63,7 @@ impl Actor for ChatSession {
|
||||
}
|
||||
|
||||
/// To use `Framed` we have to define Io type and Codec
|
||||
impl FramedActor<TcpStream, ChatCodec> for ChatSession {
|
||||
impl FramedHandler<TcpStream, ChatCodec> for ChatSession {
|
||||
|
||||
/// This is main event loop for client requests
|
||||
fn handle(&mut self, msg: io::Result<ChatRequest>, ctx: &mut Context<Self>) {
|
||||
|
Loading…
Reference in New Issue
Block a user