AutoIncEvent

Trait AutoIncEvent 

Source
pub trait AutoIncEvent: UserEvent {
    // Required method
    fn next(&mut self) -> Self::ID;
}
Expand description

Generally if user-defined event system do not care about event id’s semantics, CAN implement this trait to reduce usage complexity

Required Methods§

Source

fn next(&mut self) -> Self::ID

Generate a new event id

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> AutoIncEvent for RPCResponser<Argument>
where Argument: Sized + Send + 'static,