Add inspect

Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
Marcel Müller 2025-11-04 10:24:21 +01:00
parent f3f816acd9
commit 66971a4f26
2 changed files with 71 additions and 2 deletions

View file

@ -41,6 +41,10 @@ impl InternalMessage {
})
}
pub fn as_ref<M: Any>(&self) -> Option<&M> {
self.value.downcast_ref()
}
pub fn type_name(&self) -> &'static str {
self.name
}