Add inspect
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
f3f816acd9
commit
66971a4f26
2 changed files with 71 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue