Module near_async::test_loop::event_handler

source ·

Structs§

  • An event handler registered on a test loop. Each event handler usually handles only some events, so we will usually have multiple event handlers registered to cover all event types.

Traits§

  • A convenient trait to TryInto, or else return the original object. It’s useful for implementing event handlers.

Functions§

  • An event handler that puts the event into a vector in the Data, as long as the Data contains a Vec. (Use widen() right after).
  • An event handler that ignores all events.