Struct sirpent::actors::GameActor
[−]
[src]
pub struct GameActor { /* fields omitted */ }
Methods
impl GameActor
[src]
Trait Implementations
impl Clone for GameActor
[src]
fn clone(&self) -> GameActor
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Actor for GameActor
[src]
type Request = (Game, MsgRoom<String>, Milliseconds)
The message sent to the actor
type Response = (Game, MsgRoom<String>)
The response sent back from the actor
type Error = ()
The response error
type Future = Box<Future<Item=Self::Response, Error=Self::Error>>
The internal response future. This will remain on the actor's task and will be polled to completion before being sent back to the caller. Read more
fn call(&mut self, (game, players, timeout): Self::Request) -> Self::Future
Process an inbound message and return a response. Read more
fn poll(&mut self, state: ActorState) -> Async<()>
Poll the Actor
to see if it has completed processing. Read more
fn poll_ready(&mut self) -> Async<()>
Indicates that the actor is ready to process the next inbox message Read more