Skip to content

Commit

Permalink
✨ zm: Generate Message getter for generated signal structs
Browse files Browse the repository at this point in the history
  • Loading branch information
zeenix committed Feb 3, 2024
1 parent 224172c commit 674ceef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zbus_macros/src/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,11 @@ fn gen_proxy_signal(
_ => None,
}
}

#[doc = "The reference to the underlying [`zbus::Message`]."]
pub fn message(&self) -> &#zbus::message::Message {
self.0.message()
}
}

impl ::std::convert::From<#signal_name_ident> for #zbus::message::Message {
Expand Down

0 comments on commit 674ceef

Please sign in to comment.