pub struct MsgHandler {
pub msg_pattern: String,
pub state_mutations: Vec<StateMutation>,
pub file_path: String,
}Expand description
A message handler in the update function
Fields§
§msg_pattern: StringMessage pattern being matched (e.g., “Msg::Increment”)
state_mutations: Vec<StateMutation>State mutations triggered by this message
file_path: StringFile path
Trait Implementations§
Source§impl Clone for MsgHandler
impl Clone for MsgHandler
Source§fn clone(&self) -> MsgHandler
fn clone(&self) -> MsgHandler
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MsgHandler
impl Debug for MsgHandler
Source§impl PartialEq for MsgHandler
impl PartialEq for MsgHandler
impl StructuralPartialEq for MsgHandler
Auto Trait Implementations§
impl Freeze for MsgHandler
impl RefUnwindSafe for MsgHandler
impl Send for MsgHandler
impl Sync for MsgHandler
impl Unpin for MsgHandler
impl UnwindSafe for MsgHandler
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