Struct sirpent::actors::Nameserver
[−]
[src]
pub struct Nameserver { /* fields omitted */ }
Methods
impl Nameserver
[src]
Trait Implementations
impl Default for Nameserver
[src]
fn default() -> Nameserver
Returns the "default value" for a type. Read more
impl Actor for Nameserver
[src]
type Request = String
The message sent to the actor
type Response = String
The response sent back from the actor
type Error = ()
The response error
type Future = FutureResult<String, ()>
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, desired_name: 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