pub struct TestEvent {
pub event_type: EventType,
pub message: String,
}Expand description
Simple typed event for hook and event-bus tests.
Fields§
§event_type: EventTypeStable event type name.
message: StringHuman-readable payload.
Implementations§
Trait Implementations§
impl Eq for TestEvent
Source§impl Event for TestEvent
impl Event for TestEvent
Source§fn event_type(&self) -> EventType
fn event_type(&self) -> EventType
Return the event type discriminator for this event.
impl StructuralPartialEq for TestEvent
Auto Trait Implementations§
impl Freeze for TestEvent
impl RefUnwindSafe for TestEvent
impl Send for TestEvent
impl Sync for TestEvent
impl Unpin for TestEvent
impl UnsafeUnpin for TestEvent
impl UnwindSafe for TestEvent
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