~liz/yooper

3f064aa5dd2d8d8ad06170fa3536ded6b6695d25 — Ellie Frost 2 years ago 3c62bc0
Update examples
1 files changed, 9 insertions(+), 3 deletions(-)

M yooper_derive/src/from_packet.rs
M yooper_derive/src/from_packet.rs => yooper_derive/src/from_packet.rs +9 -3
@@ 5,15 5,21 @@ use proc_macro2::TokenStream;
use quote::{quote, ToTokens};
use syn::{DeriveInput, Result};

// #[derive(ToMessage)]
// #[derive(ToMessage, FromMessage)]
// enum Packet {
//   #[message(reqline = Notify, nts = "ssdp:alive")]
//   Alive {
//     # #[header("ssdpuuid.upnp.org")
//   Alive (Alive)
//     #[header("ssdpuuid.upnp.org")
//     uuid: String
//   }
//  }
// }
//
// #[deive(ToHeaders, FromHeaders)]
// struct Alive {
//     #[header("ssdpuuid.upnp.org")
//     uuid: String
// }

struct FromPacket<'a>(&'a MessageVariant);