pub struct AnyMessage { /* private fields */ }Implementations§
Source§impl AnyMessage
impl AnyMessage
pub fn new<T>(value: T) -> Selfwhere
T: Message,
pub fn peek<T>(&self) -> Option<&T>where
T: Message,
pub fn cast<T>(self) -> Result<T, Self>where
T: Message,
pub fn is<T>(&self) -> boolwhere
T: Message,
pub fn tid(&self) -> TypeId
pub fn type_name(&self) -> &'static str
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AnyMessage
impl !RefUnwindSafe for AnyMessage
impl Send for AnyMessage
impl !Sync for AnyMessage
impl Unpin for AnyMessage
impl !UnwindSafe for AnyMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more