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§

source§

impl EventHandlerContext for Option<EncryptionInfo>

source§

impl EventHandlerContext for Vec<Action>

Implementors§

source§

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.

source§

impl EventHandlerContext for Client

source§

impl EventHandlerContext for EventHandlerHandle

source§

impl EventHandlerContext for RawEvent

source§

impl<T: Clone + Send + Sync + 'static> EventHandlerContext for Ctx<T>