sheave_core::messages

Trait UserControl

Source
pub trait UserControl {
    const EVENT_TYPE: EventType;
}
Expand description

Uniforms user control messages by an event type.

When reading from streams or writing into streams, we are required to imprint a event type ID into their messages. This makes you to reduce its cost.

Required Associated Constants§

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 UserControl for StreamBegin

Source§

const EVENT_TYPE: EventType = EventType::StreamBegin