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 ()

source§

impl EventHandlerContext for Vec<Action>

source§

impl<A> EventHandlerContext for (A,)

source§

impl<A, B> EventHandlerContext for (A, B)

source§

impl<A, B, C> EventHandlerContext for (A, B, C)

source§

impl<A, B, C, D> EventHandlerContext for (A, B, C, D)

source§

impl<A, B, C, D, E> EventHandlerContext for (A, B, C, D, E)

source§

impl<A, B, C, D, E, F> EventHandlerContext for (A, B, C, D, E, F)

source§

impl<A, B, C, D, E, F, G> EventHandlerContext for (A, B, C, D, E, F, G)

source§

impl<A, B, C, D, E, F, G, H> EventHandlerContext for (A, B, C, D, E, F, G, H)

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>