Skip to main content

EventHandle

Trait EventHandle 

Source
pub trait EventHandle: Copy + Debug {
    // Required methods
    fn id(&self) -> usize;
    fn addr(&self) -> AbsoluteAddr;
}
Expand description

Marker trait for backend-specific event handles.

An event handle is an opaque reference to a compiled clock or async-reset trigger. It is resolved once via SimBackend::resolve_event and then passed to tick/eval methods for zero-cost dispatch.

Required Methods§

Source

fn id(&self) -> usize

Numeric event identifier used for scheduling.

Source

fn addr(&self) -> AbsoluteAddr

The absolute address of the signal this event is bound to.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§