Event

Trait Event 

Source
pub trait Event: Decode {
    const EVENT_NAMES: &'static [Route];

    // Provided method
    fn decode_event(
        prefix: Route,
        payload: impl AsRef<[u8]>,
    ) -> Result<Self, Error> { ... }
}

Required Associated Constants§

Source

const EVENT_NAMES: &'static [Route]

Provided Methods§

Source

fn decode_event(prefix: Route, payload: impl AsRef<[u8]>) -> Result<Self, Error>

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§