| Crates.io | async-reply-derive |
| lib.rs | async-reply-derive |
| version | 0.1.2 |
| created_at | 2020-12-22 20:09:58.810565+00 |
| updated_at | 2022-03-21 13:48:41.397061+00 |
| description | Derive macros for `async-reply` messages |
| homepage | |
| repository | https://github.com/OSSystems/async-reply-rs |
| max_upload_size | |
| id | 326170 |
| size | 20,058 |
Derive macros for async-reply message.
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() {}
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.