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.
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
impl EventHandlerContext for Option<EncryptionInfo>
impl EventHandlerContext for Vec<Action>
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.