[][src]Crate async_reply_derive

Derive macros for async-reply message.

Usage

use async_reply::Message;

#[derive(Message)]
#[rtype(response = "Pong")]
struct Ping;

struct Pong;

fn main() {}

This code expands into following code:

use async_reply::Message;

struct Ping;

struct Pong;

impl Message for Ping {
    type Response = Pong;
}

fn main() {}

Derive Macros

Message