matrix_sdk::event_handler

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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>