async-reply-derive

Crates.ioasync-reply-derive
lib.rsasync-reply-derive
version0.1.2
sourcesrc
created_at2020-12-22 20:09:58.810565
updated_at2022-03-21 13:48:41.397061
descriptionDerive macros for `async-reply` messages
homepage
repositoryhttps://github.com/OSSystems/async-reply-rs
max_upload_size
id326170
size20,058
Otavio Salvador (otavio)

documentation

https://docs.rs/async-reply-derive

README

Documentation

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() {}

License

Licensed under either of

at your option.

Contribution

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.

Commit count: 32

cargo fmt