Trait matrix_sdk::event_handler::EventHandlerContext[][src]

pub trait EventHandlerContext: Sized { }
Expand description

Context for an event handler.

This trait defines the set of types that may be used as additional arguments in event handler functions after the event itself.

Implementations on Foreign Types

Implementors

This event handler context argument is only applicable to room-specific events.

Trying to use it in the event handler for another event, for example a global account data or presence event, will result in the event handler being skipped and an error getting logged.