UserEvent

Trait UserEvent 

Source
pub trait UserEvent: Default {
    type ID: ?Sized + Hash + Eq + Send + Sync + Clone + 'static + Display;
    type Argument: Sized + Send + 'static;
}
Expand description

User-defined event type MUST implement this trait.

Required Associated Types§

Source

type ID: ?Sized + Hash + Eq + Send + Sync + Clone + 'static + Display

Event id crate::channel::CompleteQ use this id to track event message.

Source

type Argument: Sized + Send + 'static

Event message payload structure.

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.

Implementors§

Source§

impl<Argument> UserEvent for RPCResponser<Argument>
where Argument: Sized + Send + 'static,

Source§

type ID = usize

Source§

type Argument = Argument