Trait matrix_sdk::event_handler::EventHandlerContext
source · [−]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
impl EventHandlerContext for Option<EncryptionInfo>
Implementors
impl EventHandlerContext for Room
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.